import{h}from"@stencil/core";export const createContext=e=>({Provider:(n,t)=>{let r=n&&n.value||e;return h("sc-provider",{STENCIL_CONTEXT:r},t)},Consumer:(e,n)=>{if(!n.length)return console.warn("[sc-context] You must pass <Consumer> a single child that is a Function.");const t=n[0];return t instanceof Function?h("sc-consumer",{renderer:t}):console.warn("[sc-context] <Consumer> first child must be a Function.")}});