2023-11-28 10:26:14 -05:00
|
|
|
import Box from '@mui/material/Box';
|
|
|
|
import ListItemIcon from '@mui/material/ListItemIcon';
|
|
|
|
import ListItemText from '@mui/material/ListItemText';
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { useSystemInfo } from 'hooks/useSystemInfo';
|
|
|
|
import ListItemLink from 'components/ListItemLink';
|
|
|
|
|
|
|
|
import appIcon from 'assets/img/icon-transparent.png';
|
|
|
|
|
|
|
|
const DrawerHeaderLink = () => {
|
2024-02-21 00:47:03 -05:00
|
|
|
const { data: systemInfo } = useSystemInfo();
|
2023-11-28 10:26:14 -05:00
|
|
|
|
|
|
|
return (
|
|
|
|
<ListItemLink to='/'>
|
|
|
|
<ListItemIcon sx={{ minWidth: 56 }}>
|
|
|
|
<Box
|
|
|
|
component='img'
|
|
|
|
src={appIcon}
|
|
|
|
sx={{ height: '2.5rem' }}
|
|
|
|
/>
|
|
|
|
</ListItemIcon>
|
|
|
|
<ListItemText
|
|
|
|
primary={systemInfo?.ServerName || 'Jellyfin'}
|
|
|
|
primaryTypographyProps={{ variant: 'h6' }}
|
|
|
|
secondary={systemInfo?.Version}
|
|
|
|
/>
|
|
|
|
</ListItemLink>);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default DrawerHeaderLink;
|