"use client" import { useController, useFormContext } from "react-hook-form" import DeprecatedSelect from "@scandic-hotels/design-system/DeprecatedSelect" import type { SelectProps } from "./select" export default function Select({ className, items, label, disabled, name, isNestedInModal = false, registerOptions = {}, }: SelectProps) { const { control } = useFormContext() const { field } = useController({ control, name, rules: registerOptions, }) return ( ) }