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