31 lines
556 B
React
31 lines
556 B
React
![]() |
import PropTypes from 'prop-types';
|
||
|
import { useRouter } from 'next-nprogress-bar';
|
||
|
|
||
|
// mui
|
||
|
import { Box } from '@mui/material';
|
||
|
|
||
|
export const Logo = () => {
|
||
|
const { push } = useRouter();
|
||
|
return (
|
||
|
<Box
|
||
|
sx={{
|
||
|
cursor: 'pointer',
|
||
|
width: 150,
|
||
|
height: 'auto',
|
||
|
'> img': {
|
||
|
width: '100%'
|
||
|
}
|
||
|
}}
|
||
|
onClick={() => push('/')}
|
||
|
>
|
||
|
<img src="/PICSHOP_LOGO.png" alt="logo" />
|
||
|
</Box>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
Logo.propTypes = {
|
||
|
sx: PropTypes.object,
|
||
|
isMobile: PropTypes.bool
|
||
|
};
|
||
|
export default Logo;
|