{modes.map(m => (
))}
{lastInteraction && (
{lastInteraction.mode === 'move' && `๐ฏ Moving turtle to (${lastInteraction.target.x}, ${lastInteraction.target.y}, ${lastInteraction.target.z})`}
{lastInteraction.mode === 'build' && `๐งฑ Build at (${lastInteraction.target.x}, ${lastInteraction.target.y}, ${lastInteraction.target.z})`}
{lastInteraction.mode === 'select' && lastInteraction.end &&
`โฌ Selected (${lastInteraction.start.x},${lastInteraction.start.y},${lastInteraction.start.z}) โ (${lastInteraction.end.x},${lastInteraction.end.y},${lastInteraction.end.z})`}
)}
);
}
// Block count HUD
function BlockCountHUD({ blocks }) {
const count = blocks.length;
const chunkCount = useMemo(() => {
const chunks = new Set();
blocks.forEach(b => chunks.add(`${Math.floor(b.x / 16)},${Math.floor(b.z / 16)}`));
return chunks.size;
}, [blocks]);
return (