import { cn } from '@/lib/utils'; import { ReactNode } from 'react'; import { useFormContext } from 'react-hook-form'; import { SingleFormSlider } from './ui/dual-range-slider'; import { FormControl, FormField, FormItem, FormLabel, FormMessage, } from './ui/form'; import { Input } from './ui/input'; type SliderInputFormFieldProps = { max?: number; min?: number; step?: number; name: string; label: string; tooltip?: ReactNode; defaultValue?: number; className?: string; }; export function SliderInputFormField({ max, min, step, label, name, tooltip, defaultValue, className, }: SliderInputFormFieldProps) { const form = useFormContext(); return ( ( {label}
)} /> ); }