"use client"; import React, { memo } from "react"; import { FlapDisplay, Presets } from "./"; interface BoardRow { value: string; chars?: string; length?: number; hinge?: boolean; color?: string; // New color property for each row } interface SolariBoardProps { rows: BoardRow[]; className?: string; } // Memoize the individual FlapDisplay rows const MemoizedFlapDisplay = memo(FlapDisplay); export const SolariBoard: React.FC = memo( ({ rows, className }) => { return (
{rows.map((row, index) => ( ))}
); } );