{"version":3,"file":"header.mjs","names":[],"sources":["../../src/panel/header.tsx"],"sourcesContent":["import type { PanelHeaderProps } from './types';\n\n/**\n * `PanelHeader` renders the header for the `Panel`.\n * This is used by the `Panel` component under the hood,\n * so it does not typically need to be used.\n */\nfunction PanelHeader( { label, children }: PanelHeaderProps ) {\n\treturn (\n\t\t<div className=\"components-panel__header\">\n\t\t\t{ label && <h2>{ label }</h2> }\n\t\t\t{ children }\n\t\t</div>\n\t);\n}\n\nexport default PanelHeader;\n"],"mappings":";;;;;;;AAOA,SAAS,YAAa,EAAE,OAAO,YAA+B;CAC7D,OACC,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACG,SAAS,oBAAC,MAAD,EAAA,UAAM,MAAW,CAAA,GAC1B,QACE;;AAEP"}