/* * This file is part of a proprietary work. * * Copyright (c) 2025 Fossorial, Inc. * All rights reserved. * * This file is licensed under the Fossorial Commercial License. * You may not use this file except in compliance with the License. * Unauthorized use, copying, modification, or distribution is strictly prohibited. * * This file is not licensed under the AGPLv3. */ "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 (
); }