{"version":3,"file":"index.cjs","names":["ComplementaryAreaToggle","closeSmall"],"sources":["../../../src/components/complementary-area-header/index.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { closeSmall } from '@wordpress/icons';\nimport ComplementaryAreaToggle from '../complementary-area-toggle';\nimport type { ComplementaryAreaHeaderProps } from './types';\n\nconst ComplementaryAreaHeader = ( {\n\tchildren,\n\tclassName,\n\ttoggleButtonProps,\n}: ComplementaryAreaHeaderProps ) => {\n\tconst toggleButton = (\n\t\t<ComplementaryAreaToggle icon={ closeSmall } { ...toggleButtonProps } />\n\t);\n\treturn (\n\t\t<div\n\t\t\tclassName={ clsx(\n\t\t\t\t'components-panel__header',\n\t\t\t\t'interface-complementary-area-header',\n\t\t\t\tclassName\n\t\t\t) }\n\t\t\ttabIndex={ -1 }\n\t\t>\n\t\t\t{ children }\n\t\t\t{ toggleButton }\n\t\t</div>\n\t);\n};\n\nexport default ComplementaryAreaHeader;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,2BAA4B,EACjC,UACA,WACA,wBACoC;CACpC,MAAM,eACL,iBAAA,GAAA,kBAAA,IAAA,CAACA,uCAAAA,SAAD;EAAyB,MAAOC,iBAAAA;EAAa,GAAK;CAAqB,CAAA;CAExE,OACC,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EACC,YAAA,GAAY,KAAA,QAAA,CACX,4BACA,uCACA,SACD;EACA,UAAW;EANZ,UAAA,CAQG,UACA,YACE;;AAEP"}