/** The three transport buttons, at two sizes. The glyphs are CSS shapes, as in the * mockup - no icon font to load on a device that boots offline. */ interface Props { playing: boolean; onToggle: () => void; onNext: () => void; onPrevious: () => void; /** Side length of the skip buttons; the play button scales from it. */ size: number; gap: number; } export function Transport({ playing, onToggle, onNext, onPrevious, size, gap }: Props) { const glyph = Math.round(size * 0.33); const bar = Math.max(4, Math.round(size * 0.085)); const playSize = Math.round(size * 1.26); const playBar = Math.max(6, Math.round(playSize * 0.1)); const playGlyph = Math.round(playSize * 0.37); return (