mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-18 11:25:25 +01:00
feat: search page
This commit is contained in:
1 parent
408b561b75
commit
ffa1395b50
70 files changed
+492
-468
No files matched your search
@@ -0,0 +1,37 @@
|
||||
import { MinusCircledIcon } from '@radix-ui/react-icons';
|
||||
import { Callout, Flex } from '@radix-ui/themes';
|
||||
import { ExperimentIcon } from '../../../../../components/ExperimentIcon';
|
||||
import * as Duel from '../../../../../stores/duel';
|
||||
|
||||
export function CalloutsSection() {
|
||||
const tank = Duel.use((state) => state.protagonist.tank);
|
||||
|
||||
if (!tank.testing && !tank.deprecated) return null;
|
||||
|
||||
return (
|
||||
<Flex direction="column" align="center" gap="2" mb="4">
|
||||
{tank.deprecated && (
|
||||
<Callout.Root color="red">
|
||||
<Callout.Icon>
|
||||
<MinusCircledIcon />
|
||||
</Callout.Icon>
|
||||
<Callout.Text>
|
||||
This tank is deprecated and may display undefined behavior.
|
||||
</Callout.Text>
|
||||
</Callout.Root>
|
||||
)}
|
||||
|
||||
{tank.testing && (
|
||||
<Callout.Root color="red">
|
||||
<Callout.Icon>
|
||||
<ExperimentIcon style={{ width: '1em', height: '1em' }} />
|
||||
</Callout.Icon>
|
||||
<Callout.Text>
|
||||
Tanks in testing are subject to change and may not represent the
|
||||
final product.
|
||||
</Callout.Text>
|
||||
</Callout.Root>
|
||||
)}
|
||||
</Flex>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user