1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/components/Backdrop.tsx

27 lines
628 B
TypeScript
Raw Normal View History

2023-11-28 10:26:14 -05:00
import Box from '@mui/material/Box';
import React, { useEffect } from 'react';
2023-11-28 10:26:14 -05:00
import { DRAWER_WIDTH } from './ResponsiveDrawer';
const Backdrop = () => {
useEffect(() => {
// Initialize the UI components after first render
import('../scripts/autoBackdrops');
}, []);
return (
<>
2023-11-28 10:26:14 -05:00
<Box
className='backdropContainer'
sx={{
left: {
sm: DRAWER_WIDTH
}
}}
/>
<div className='backgroundContainer' />
</>
);
};
export default Backdrop;