mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-03 03:11:40 +00:00
19 lines
522 B
TypeScript
19 lines
522 B
TypeScript
|
|
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>
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
};
|