import style from "./Input.module.scss" ; import cs from "classnames" ; import { InputText , Props as InputProps } from "./InputText" ; interface Props extends InputProps { unit : string ; sizeX ? : "regular" | "small" ; } export function InputTextUnit ( { unit , sizeX = "regular" , ... props } ) { return ( < div className = { cs ( style . textunit , style [ `size-${ sizeX }` ] ) } > < InputText { ... props } / > < span > { unit } < /span> < /div>); }