"use client"; import { Button } from "@app/components/ui/button"; import { Label } from "@app/components/ui/label"; import { Popover, PopoverContent, PopoverTrigger } from "@app/components/ui/popover"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@app/components/ui/select"; import { Switch } from "@app/components/ui/switch"; import type { LauncherViewConfig } from "@server/routers/launcher/types"; import { useTranslations } from "next-intl"; import { Settings } from "lucide-react"; type LauncherSettingsMenuProps = { config: LauncherViewConfig; isDefaultView: boolean; onConfigChange: (patch: Partial) => void; onDeleteView: () => void; }; export function LauncherSettingsMenu({ config, isDefaultView, onConfigChange, onDeleteView }: LauncherSettingsMenuProps) { const t = useTranslations(); return (

{t("resourceLauncherGroupBy")}

{t("resourceLauncherLayout")}

onConfigChange({ showLabels: checked }) } />
onConfigChange({ showSiteTags: checked }) } />
{!isDefaultView ? ( ) : null}
); }