import { formatTwoDigits } from "@/_utils/converter"; import React from "react"; import { Controller, useController } from "react-hook-form"; type Props = { id: string; control: any; min: number; max: number; step: number; }; const DraggableProgressBar: React.FC = ({ id, control, min, max, step }) => { const { field } = useController({ name: id, control: control, }); return (
( {formatTwoDigits(value)} )} />
); }; export default DraggableProgressBar;