import { ReactElement } from 'react' interface Props { width: string usage: number } export function Capacity({ width, usage }: Props): ReactElement { const integerUsage = Math.round(usage * 100) const used = integerUsage + '%' const free = 100 - 2 - integerUsage + '%' return (