import{r as e,j as a}from"./router.chunk.YsRm4bSN.js";const r=e.createContext(null),t=()=>{const a=e.use(r);if(!a)throw new Error("useCampaign must be used within a CampaignProvider");return a},n=({children:t,campaign:n})=>{const[s,u]=e.useState(n);return e.useEffect(()=>{u(n)},[n]),a.jsx(r,{value:{campaign:s,updateCampaign:u},children:t})};export{n as C,t as u};
