{"version":3,"file":"index.cjs","names":["Fill","Slot"],"sources":["../../../src/components/pinned-items/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport clsx from 'clsx';\nimport { Slot, Fill } from '@wordpress/components';\nimport type { PinnedItemsProps, PinnedItemsSlotProps } from './types';\n\nfunction PinnedItems( { scope, ...props }: PinnedItemsProps ) {\n\treturn <Fill name={ `PinnedItems/${ scope }` } { ...props } />;\n}\n\nfunction PinnedItemsSlot( {\n\tscope,\n\tclassName,\n\t...props\n}: PinnedItemsSlotProps ) {\n\treturn (\n\t\t<Slot name={ `PinnedItems/${ scope }` } { ...props }>\n\t\t\t{ ( fills ) =>\n\t\t\t\t( fills as ReactNode[] )?.length > 0 && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t\tclassName,\n\t\t\t\t\t\t\t'interface-pinned-items'\n\t\t\t\t\t\t) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ fills }\n\t\t\t\t\t</div>\n\t\t\t\t)\n\t\t\t}\n\t\t</Slot>\n\t);\n}\n\nPinnedItems.Slot = PinnedItemsSlot;\n\nexport default PinnedItems;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,SAAS,YAAa,EAAE,OAAO,GAAG,SAA4B;CAC7D,OAAO,iBAAA,GAAA,kBAAA,IAAA,CAACA,sBAAAA,MAAD;EAAM,MAAO,eAAgB;EAAW,GAAK;CAAS,CAAA;AAC9D;AAEA,SAAS,gBAAiB,EACzB,OACA,WACA,GAAG,SACsB;CACzB,OACC,iBAAA,GAAA,kBAAA,IAAA,CAACC,sBAAAA,MAAD;EAAM,MAAO,eAAgB;EAAW,GAAK;EACxC,WAAA,UACD,OAAwB,SAAS,KAClC,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GACC,YAAA,GAAY,KAAA,QAAA,CACX,WACA,wBACD;GAEE,UAAA;EACE,CAAA;CAGF,CAAA;AAER;AAEA,YAAY,OAAO"}