import { Flex, Select, Text } from '@radix-ui/themes'; import { useLocale } from '../../hooks/useLocale'; import { Performance, type PlayerCountPeriod } from '../../stores/performance'; export function PlayerCountControl() { const playerCountPeriod = Performance.use((state) => state.playerCountPeriod); const { strings } = useLocale(); return ( {strings.website.tools.performance.player_count.label} { Performance.mutate((draft) => { draft.playerCountPeriod = period as PlayerCountPeriod; }); }} > {strings.common.player_count_period.total} {strings.common.player_count_period.d_120} {strings.common.player_count_period.d_90} {strings.common.player_count_period.d_60} {strings.common.player_count_period.d_30} {strings.common.player_count_period.d_7} {strings.common.player_count_period.d_1} ); }