34 lines
625 B
JavaScript
34 lines
625 B
JavaScript
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={{
|
|
display: 'flex',
|
|
alignItems:'center',
|
|
cursor: 'pointer',
|
|
width: 150,
|
|
height: 'auto',
|
|
'> img': {
|
|
height:36,
|
|
width: 'auto'
|
|
}
|
|
}}
|
|
onClick={() => push('/')}
|
|
>
|
|
<img src="/ui_1920.png" alt="logo"/>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
Logo.propTypes = {
|
|
sx: PropTypes.object,
|
|
isMobile: PropTypes.bool
|
|
};
|
|
export default Logo;
|