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/AppBody.tsx

25 lines
656 B
TypeScript
Raw Normal View History

2024-06-02 20:58:11 +03:00
import React, { type FC, type PropsWithChildren, useEffect } from 'react';
import viewContainer from './viewContainer';
/**
* A simple component that includes the correct structure for ViewManager pages
* to exist alongside standard React pages.
*/
2024-06-02 20:58:11 +03:00
const AppBody: FC<PropsWithChildren<unknown>> = ({ children }) => {
useEffect(() => () => {
// Reset view container state on unload
viewContainer.reset();
}, []);
return (
<>
<div className='mainAnimatedPages skinBody' />
<div className='skinBody'>
{children}
</div>
</>
);
};
export default AppBody;