import type { ReactNode } from 'react' import { X } from 'lucide-react' import { NEUTRAL_TINT } from './DialogShell' import { Tooltip } from './Tooltip' import { centredMapCardBox } from '../Map/centredMapCard' interface DetailShellProps { header: ReactNode children: ReactNode footer?: ReactNode onClose: () => void closeLabel: string leftWidth?: number rightWidth?: number /** Over the desktop map: keep clear of the base-layer pill in its bottom-left corner. */ clearMapPill?: boolean /** The head band's background; the neutral accent wash when left out. */ tint?: string closeButtonClassName?: string testId?: string } /** * The card a selected item opens over the map, in the place inspector's frame: * centred between the planner panels, a tinted head band with the close button, * a body that scrolls and a footer that stays in reach. */ export default function DetailShell({ header, children, footer, onClose, closeLabel, leftWidth = 0, rightWidth = 0, clearMapPill = false, tint = NEUTRAL_TINT, closeButtonClassName = '', testId, }: DetailShellProps) { return (
{header}
{children}
{footer && ( )}
) }