+ {elapsedSeconds}s elapsed + {overEstimate + ? ' — taking a bit longer than usual…' + : ` · usually ~${Math.max(1, Math.round(estimateMs / 1000))}s`} +
+ > + ); +} + +export function CalculatingInline({ + label, + elapsedMs, + estimateMs, +}: { + label: string; + elapsedMs: number; + estimateMs: number; +}) { + return ( +{label}
+{title}
{subtitle}
-- {elapsedSeconds}s elapsed - {overEstimate - ? ' — taking a bit longer than usual…' - : ` · usually ~${Math.max(1, Math.round(estimateMs / 1000))}s`} -
+