in src/components/GenieButtons.tsx [25:48]
export default function GenieButtons(props: Props = {}) {
const { active } = props;
return (
<Grid
container
columns={buttonCount}
className="genie-controls"
spacing={0}
>
{[...Array(buttonCount)].map((_, i) => (
<Grid item xs={1} key={i}>
<button
className={`color-${i}`}
data-id={i}
data-active={i === active ? "active" : ""}
>
<span>{i}</span>
</button>
</Grid>
))}
</Grid>
);
}