// The controls for one lab, declared by the lab and laid out in a single row
// above its figures.
import type { Params, ParamValue } from '../engine/types.ts'
import type { Control } from './types.ts'
export default function Controls({
controls,
params,
onChange,
}: {
controls: Control[]
params: Params
onChange: (key: string, value: ParamValue) => void
}) {
if (controls.length === 0) return null
return (