🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
"use client";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
import { useExtracted } from "next-intl";
import { usePlaygroundStore } from "../hooks/usePlaygroundStore";
import { timezones } from "@/lib/dateTimeUtils";
export function TimezoneSelect() {
const t = useExtracted();
const { timeZone, setTimeZone } = usePlaygroundStore();
return (
<div className="space-y-1">
<label className="text-sm font-medium text-neutral-700 dark:text-neutral-300">{t("Time Zone")}</label>
<Select value={timeZone} onValueChange={setTimeZone}>
<SelectTrigger className="h-8 text-xs">
<SelectValue placeholder={t("Select timezone")} />
</SelectTrigger>
<SelectContent>
{timezones.map(tz => (
<SelectItem key={tz.value} value={tz.value} className="text-xs">
{tz.label}
</SelectItem>
))}
</SelectContent>
</Select>
</div>
);
}