import { NumberInput } from '@mantine/core'; import { useOptionsContext } from './Options.context'; type OptionNumberInputProps = { path: string; disabled?: boolean; }; export function OptionNumberInput({ path, disabled = false }: OptionNumberInputProps) { const { getOptions, updateOptions } = useOptionsContext(); const handleThresholdChange = (value: string) => { updateOptions(path, value); }; return ( ); }