picshop/src/components/logo.jsx

31 lines
556 B
React
Raw Normal View History

2024-12-04 15:35:04 +00:00
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;