Module 949091

825 characters · in f87001f3c0e55b66.js
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,l,n){n.d(l,{A:()=>u});var t=n(477900),o=n(477782),d=n(783977),i=n(398590),s=n(790271),r=n(944771),a=n(764451),c=n(652215);function u(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=(0,s.ni)("playground_menu"),n=(0,r.useComponentPlaygroundConfigs)(l);if(!l)return null;let u=n.flatMap(e=>e.collections);return(0,t.jsx)(o.Dr,{id:"playgrounds",label:"Playgrounds",leadingAccessory:e?{type:"icon",icon:d.R}:void 0,action:()=>{a.PlaygroundStore.setState({selectedCollection:null,selectedStory:null}),(0,i.id)(c.zgK.COMPONENT_PLAYGROUND)},children:(0,t.jsx)(o.rX,{children:u.map(e=>(0,t.jsx)(o.Dr,{id:`${e.id}-playground`,label:e.name,action:()=>{a.PlaygroundStore.setState({selectedCollection:e.id,selectedStory:null}),(0,i.id)(c.zgK.COMPONENT_PLAYGROUND)}},e.id))},"design-systems")},"playgrounds")}}