import React from 'react'; const GridCell = React.memo(({ active, mismatch, weight, variant, onClick }) => { if (variant === 'signal') { return ( ); } // Memory variant const style = weight > 0.5 ? { boxShadow: `0 0 ${weight * 20}px rgba(255,255,255,0.4)`, borderColor: `rgba(255,255,255,${weight})` } : { borderColor: `rgba(255,255,255,${weight})` }; return (
); }); GridCell.displayName = 'GridCell'; export default GridCell;