13 lines
390 B
TypeScript
13 lines
390 B
TypeScript
import type { FieldValues } from "react-hook-form";
|
|
|
|
import { DecimalField } from "../decimal-field/index.ts";
|
|
|
|
import type { SemanticNumericFieldProps } from "./semantic-numeric-fields.types.ts";
|
|
|
|
export const QuantityField = <TFormValues extends FieldValues>({
|
|
scale = 4,
|
|
...props
|
|
}: SemanticNumericFieldProps<TFormValues>) => {
|
|
return <DecimalField {...props} scale={scale} />;
|
|
};
|