Something went wrong. Try again.
An atproto Tilemap editor
Something went wrong. Try again.
849 B · 23 lines
TSX
at main
123456789101112131415161718192021222324import { useMapStore } from '../store/mapStore'import PropertyList from './PropertyList'
/** The map's own custom property bag (the map analog of {@link NodeProperties}). * Wired to the map-level property actions; shown in the map settings panel. */export default function MapProperties() { const properties = useMapStore((s) => s.properties) const addMapProperty = useMapStore((s) => s.addMapProperty) const updateMapProperty = useMapStore((s) => s.updateMapProperty) const removeMapProperty = useMapStore((s) => s.removeMapProperty)
return ( <section className="flex flex-col gap-1.5 border-t border-border pt-3"> <PropertyList label="Map properties" items={properties} onAdd={addMapProperty} onUpdate={updateMapProperty} onRemove={removeMapProperty} /> </section> )}