"use client"; import { useState } from "react"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@app/components/ui/select"; import { InfoPopup } from "@app/components/ui/info-popup"; import { useTranslations } from "next-intl"; type Region = { value: string; label: string; flag: string; }; const regions: Region[] = [ { value: "us", label: "North America", flag: "" }, { value: "eu", label: "Europe", flag: "" } ]; export default function RegionSelector() { const [selectedRegion, setSelectedRegion] = useState("us"); const t = useTranslations(); const handleRegionChange = (value: string) => { setSelectedRegion(value); const region = regions.find((r) => r.value === value); if (region) { console.log(`Selected region: ${region.label}`); } }; return (
); }