import { h, Component } from 'preact' export default function ButtonGrid(props) { const max = props.max || Infinity return ( {props.x.map(x => ( ))} {props.y.map(y => ( {props.x.map(x => ( ))} ))}
{" "}{x}
{y} {x * y > max ? " " : }
) }