mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02:00
24 lines
576 B
TypeScript
24 lines
576 B
TypeScript
import { ReloadIcon } from '@radix-ui/react-icons';
|
|
import { Button, Flex } from '@radix-ui/themes';
|
|
import { TierList } from '../../stores/tierList';
|
|
import { tierListRows } from './Table/constants';
|
|
|
|
export function TierListControls() {
|
|
const mutateTierList = TierList.useMutation();
|
|
|
|
return (
|
|
<Flex justify="center">
|
|
<Button
|
|
color="red"
|
|
onClick={() => {
|
|
mutateTierList((draft) => {
|
|
draft.tanks = tierListRows.map(() => []);
|
|
});
|
|
}}
|
|
>
|
|
<ReloadIcon /> Reset
|
|
</Button>
|
|
</Flex>
|
|
);
|
|
}
|