{"version":3,"file":"index.mjs","names":[],"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,oBAAC,yBAAD;EAAyB,MAAO;EAAa,GAAK;CAAqB,CAAA;CAExE,OACC,qBAAC,OAAD;EACC,WAAY,KACX,4BACA,uCACA,SACD;EACA,UAAW;EANZ,UAAA,CAQG,UACA,YACE;;AAEP"}