import React, { useState } from "react"; import Box from "../Box/Box"; import BalanceInput from "./BalanceInput"; export default { title: "Components/BalanceInput", component: BalanceInput, argTypes: {}, }; export const Default: React.FC = () => { const [decimalValue, setDecimalValue] = useState(1.43333); const [numericValue, setNumericValue] = useState(5); const currencyValue = (input: number) => { return `~${(input * 1.3).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2, })} USD`; }; const handleDecimalChange = (input) => { setDecimalValue(input); }; const handleNumericChange = (input) => { setNumericValue(input); }; return ( ); };