mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
Split up main content route component
This commit is contained in:
parent
fa0a21a021
commit
e7c7eb3ec0
7 changed files with 409 additions and 286 deletions
18
src/renderer/layouts/default-layout/full-screen-overlay.tsx
Normal file
18
src/renderer/layouts/default-layout/full-screen-overlay.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { AnimatePresence } from 'framer-motion';
|
||||
import { FullScreenPlayer } from '/@/renderer/features/player/components/full-screen-player';
|
||||
import { useFullScreenPlayerStore } from '/@/renderer/store';
|
||||
|
||||
export const FullScreenOverlay = () => {
|
||||
const { expanded: isFullScreenPlayerExpanded } = useFullScreenPlayerStore();
|
||||
|
||||
return (
|
||||
<>
|
||||
<AnimatePresence
|
||||
initial={false}
|
||||
mode="wait"
|
||||
>
|
||||
{isFullScreenPlayerExpanded && <FullScreenPlayer />}
|
||||
</AnimatePresence>
|
||||
</>
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue