decocms
Version:
Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools
2 lines (1 loc) • 461 B
JavaScript
import{c as a,r as s,E as l}from"./index-ztdGKvBm.js";import{S as u}from"./thread-intent-DyZ5A9F9.js";const n=new u(!1);let c="unknown",r=null;function f(e,t){c=e,r=t?.onCreated??null,l("project_create_clicked",{source:e}),n.set(!0)}function m(){const e=a.c(2),t=s.useSyncExternalStore(n.subscribe,n.get);let o;return e[0]!==t?(o=[t,n.set],e[0]=t,e[1]=o):o=e[1],o}function d(e){const t=r;r=null,t?.(e)}function w(){return c}export{d as a,w as n,f as o,m as u};