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
2024-01-19 17:14:26 -05:00

30 lines
668 B
TypeScript

import Box from '@mui/material/Box';
import React, { useEffect } from 'react';
import layoutManager from './layoutManager';
import { DRAWER_WIDTH } from './ResponsiveDrawer';
const styles = layoutManager.experimental ? {
left: {
md: DRAWER_WIDTH
}
} : {};
const Backdrop = () => {
useEffect(() => {
// Initialize the UI components after first render
import('../scripts/autoBackdrops');
}, []);
return (
<>
<Box
className='backdropContainer'
sx={styles}
/>
<div className='backgroundContainer' />
</>
);
};
export default Backdrop;