import{aC as a,Y as o,R as e,H as l}from"./iframe-DvhcA1iZ.js";import"./preload-helper-PPVm8Dsz.js";const s=()=>{const[,n]=a.useState(0);return a.useCallback(()=>{n(t=>t+1)},[])};typeof GeolocationCoordinates>"u"||Object.getOwnPropertyNames(GeolocationCoordinates.prototype);const i=a.createContext("missing-input-device-provider");i.displayName="InputDeviceContext";const d={title:"Components/Layout/Header/StickyHeader",component:o,tags:["autodocs","layout"],argTypes:{children:{control:{disable:!0},description:"Usual children"},position:{control:{type:"select"},description:"Position of the header",options:["top","left","right","bottom"]}}},p={render:n=>{const t=new Array(1e3).fill(null).map((r,c)=>e.createElement("div",{key:c},"content"));return e.createElement(e.Fragment,null,e.createElement("style",null,`#story--components-layout-header-stickyheader--primary--primary-inner {
                        height: 400px;
                    }`),e.createElement(o,{...n},e.createElement(l,null,"x"),e.createElement(o.Content,null,t)))}},f={render:n=>{const t=e.useRef(null),r=e.useRef(null),c=s();return a.useEffect(()=>{c()},[]),console.info("RefsDemo",{ref:t.current,refContent:r.current}),e.createElement(e.Fragment,null,e.createElement(o,{...n,ref:t},e.createElement(l,null,"x"),e.createElement(o.Content,{ref:r},`Ref: ${t.current?`set ${t.current.nodeName}`:"not set"}`,e.createElement("br",null),`RefContent: ${r.current?`set ${r.current.nodeName}`:"not set"}`,e.createElement("br",null))))}},y=["Primary","RefsDemo"];export{p as Primary,f as RefsDemo,y as __namedExportsOrder,d as default};
