mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: fullscreen card
This commit is contained in:
1 parent
dd41cac3ac
commit
df7a5bb8a0
1 file changed
+4
@@ -2,13 +2,17 @@ import { PlusIcon } from '@radix-ui/react-icons';
|
||||
import { Card, Flex, Heading, Link, Text } from '@radix-ui/themes';
|
||||
import { use } from 'react';
|
||||
import { videoDefinitions } from '../../../../../core/blitzkrieg/videos';
|
||||
import { useFullScreen } from '../../../../../hooks/useFullScreen';
|
||||
import { useDuel } from '../../../../../stores/duel';
|
||||
|
||||
export function Videos() {
|
||||
const isFullScreen = useFullScreen();
|
||||
const id = useDuel((state) => state.protagonist!.tank.id);
|
||||
const awaitedVideoDefinitions = use(videoDefinitions);
|
||||
const videos = awaitedVideoDefinitions[id] ?? [];
|
||||
|
||||
if (isFullScreen) return null;
|
||||
|
||||
return (
|
||||
<Flex direction="column" gap="2" mt="4">
|
||||
<Heading size="6">Review videos</Heading>
|
||||
|
||||
Reference in new issue
Block a user