import { useRegistry, type DoorNode } from '@pascal-app/core' import { useRef } from 'react' import type { Mesh } from 'three' import { useNodeEvents } from '../../../hooks/use-node-events' export const DoorRenderer = ({ node }: { node: DoorNode }) => { const ref = useRef(null!) useRegistry(node.id, 'door', ref) const handlers = useNodeEvents(node, 'door') const isTransient = !!(node.metadata as Record | null)?.isTransient return ( {/* DoorSystem replaces this geometry each time the node is dirty */} ) }