import { ProgressBar } from '../components/ProgressBar.tsx'; import type { BarModel, StatusTone } from './bar-model.ts'; const TONE_MARKS: Record = { ok: '✓', warn: '!', bad: '✕', idle: '·', busy: '' }; /** Status, progress and the primary action, at the bottom of every page. */ export function BottomBar({ model }: { readonly model: BarModel }) { const { tone, title, detail, progress, primary, secondary } = model; return (
{title}
{detail !== undefined && (
{detail}
)}
{secondary && ( )} {progress && (
{progress.start} {progress.end}
)}
); }