mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
25 lines
599 B
TypeScript
25 lines
599 B
TypeScript
![]() |
import React, { FC, useEffect } from 'react';
|
||
|
import viewContainer from './viewContainer';
|
||
|
|
||
|
/**
|
||
|
* A simple component that includes the correct structure for ViewManager pages
|
||
|
* to exist alongside standard React pages.
|
||
|
*/
|
||
|
const AppBody: FC = ({ children }) => {
|
||
|
useEffect(() => () => {
|
||
|
// Reset view container state on unload
|
||
|
viewContainer.reset();
|
||
|
}, []);
|
||
|
|
||
|
return (
|
||
|
<>
|
||
|
<div className='mainAnimatedPages skinBody' />
|
||
|
<div className='skinBody'>
|
||
|
{children}
|
||
|
</div>
|
||
|
</>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default AppBody;
|