"use client"; import { Select } from "@homarr/ui"; import type { CommonWidgetInputProps } from "./common"; import { useWidgetInputTranslation } from "./common"; import { useFormContext } from "./form"; export type SelectOption = | { value: string; label: string; } | string; export type inferSelectOptionValue = TOption extends { value: infer TValue; } ? TValue : TOption; export const WidgetSelectInput = ({ property, kind, options, }: CommonWidgetInputProps<"select">) => { const t = useWidgetInputTranslation(kind, property); const form = useFormContext(); return (