import type { ReactNode } from 'react'; /** A number input followed by its unit ("words", "characters"). */ export default function WithUnit( { unit, children }: { unit: string; children: ReactNode } ) { return ( { children } { unit } ); }