import { useGame } from '../../contexts/game-context'
import Grid from '../board/grid'
import Space from '../space/space'
import type { GameEntity } from '../../types'
export default function Entity ({ entity }: { entity: GameEntity }) {
const { clickTarget, allClickable } = useGame()
const isClickable = allClickable.has(entity)
const attributes = entity.attributes
const entityType = attributes.entityType ?? attributes.type
switch (entityType) {
case 'Grid':
return