import { Flex, Select, Text } from '@radix-ui/themes'; import { TankPerformancePersistent } from '../../stores/tankPerformancePersistent'; import { PlayerCountPeriod } from '../../stores/tankPerformancePersistent/constants'; export function PlayerCountControl() { const playerCountPeriod = TankPerformancePersistent.use( (state) => state.playerCountPeriod, ); const mutateTankPerformanceSort = TankPerformancePersistent.useMutation(); return ( Player count { mutateTankPerformanceSort((draft) => { draft.playerCountPeriod = period as PlayerCountPeriod; }); }} > Past 120 days Past 90 days Past 60 days This month This week Yesterday ); }