import classNames from 'classnames'; import { type CSSProperties, type FunctionComponent, useMemo } from 'react'; import { createPlainTiles, getViewbox } from './lib'; import styles from './PlainTiles.module.scss'; import { Tile } from './Tile'; interface Props { className?: string; color?: string; content: string[][]; dropShadow?: boolean; showPoints?: boolean; style?: CSSProperties; wave?: boolean; } export const PlainTiles: FunctionComponent = ({ className, color, content, dropShadow, showPoints, style, wave, }) => { const tiles = useMemo(() => createPlainTiles({ color, content, showPoints }), [color, content, showPoints]); return ( {tiles.map((tile, index) => ( ))} ); };