import { useGameStore } from '../store' import { BUILDINGS } from '../../game/data/buildings' import { useMemo } from 'react' export default function TerritoryPanel() { const world = useGameStore((s) => s.world) const bump = useGameStore((s) => s.bump) const revision = useGameStore((s) => s.revision) void revision if (!world) return null const fam = world.state.family const ids = useMemo(() => Object.keys(BUILDINGS), []) const levelLabel = (l: number) => '·'.repeat(l) + '。'.repeat(5 - l) return (