mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-06 00:03:50 +01:00
feat: simplified duel state
This commit is contained in:
1 parent
7314f1d9b1
commit
66016dedf0
13 files changed
+276
-246
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import { ArrowLeftIcon } from '@radix-ui/react-icons';
|
||||
import { Flex, Heading, Link, Text } from '@radix-ui/themes';
|
||||
import { Flag } from '../../../../../components/Flag';
|
||||
import { Duel } from '../page';
|
||||
|
||||
interface TitleProps {
|
||||
duel: Duel;
|
||||
}
|
||||
|
||||
export function Title({ duel }: TitleProps) {
|
||||
return (
|
||||
<Flex justify="between" align="center">
|
||||
<Link
|
||||
href="/tools/tankopedia"
|
||||
style={{ color: 'unset', textDecoration: 'none' }}
|
||||
>
|
||||
<Flex gap="1" align="center">
|
||||
<ArrowLeftIcon />
|
||||
<Text>Back</Text>
|
||||
</Flex>
|
||||
</Link>
|
||||
|
||||
<Flex gap="2" align="center">
|
||||
<Flag nation={duel.protagonist.tank.nation} />
|
||||
<Heading>{duel.protagonist.tank.name}</Heading>
|
||||
</Flex>
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user