feat: shot type

This commit is contained in:
TrèsAbhi committed 2024-07-13 20:09:37 -05:00
1 parent 0808505af3
commit 6e26420e0e
1 file changed
+6 -1
@@ -1,7 +1,12 @@
import { Flex } from '@radix-ui/themes'; import { Flex } from '@radix-ui/themes';
import { ShotDisplayCard } from '../../../../../components/Armor/components/ShotDisplayCard'; import { ShotDisplayCard } from '../../../../../components/Armor/components/ShotDisplayCard';
import * as TankEphemeral from '../../../../../stores/tankopediaEphemeral';
export function ShotDisplaySection() { export function ShotDisplaySection() {
const shot = TankEphemeral.use((state) => state.shot);
if (!shot) return null;
return ( return (
<Flex <Flex
justify="center" justify="center"
@@ -10,7 +15,7 @@ export function ShotDisplaySection() {
sm: 'none', sm: 'none',
}} }}
> >
<ShotDisplayCard /> <ShotDisplayCard shot={shot} />
</Flex> </Flex>
); );
} }