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

31 lines
668 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';
import layoutManager from './layoutManager';
2023-11-28 10:26:14 -05:00
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 (
<>
2023-11-28 10:26:14 -05:00
<Box
className='backdropContainer'
sx={styles}
2023-11-28 10:26:14 -05:00
/>
<div className='backgroundContainer' />
</>
);
};
export default Backdrop;