import { itemVisual } from '../theme/assets'; import styles from './ItemBar.module.css'; interface Props { items: string[]; /** Icon size in px. */ size: number; slots?: number; } /** A row of item icons; the leftmost item is used next. */ export function ItemBar({ items, size, slots }: Props) { const count = Math.max(slots ?? 0, items.length); return (