import Link from "next/link" import locales from "@/cosmic/blocks/localization/locales.json" import { cosmic } from "@/cosmic/client" import { Select, SelectContent, SelectTrigger, SelectValue, } from "@/cosmic/elements/Select" export async function LocaleSelect({ defaultLocale, linkPath, objectType, className, }: { defaultLocale: string linkPath: string objectType: string className?: string }) { // Localization switch const { object_type } = await cosmic.objectTypes.findOne(objectType) const localeData = locales.filter((l) => defaultLocale === l.code)[0] return (
) }