2 lines
447 B
Java
2 lines
447 B
Java
|
|
import{b as c}from"./index-X7Y8jykP.js";import{g as i,d as l,r as u,u as r}from"./vue-vendor-DNhG1Cve.js";function p(t){if(!i())throw new Error("useDescription() can only be used inside setup() or functional components!");const s=u(null),o=u(!1);function a(e){l(()=>{s.value=null,o.value=!1}),!(r(o)&&c()&&e===r(s))&&(s.value=e,t&&e.setDescProps(t),o.value=!0)}return[a,{setDescProps:e=>{var n;(n=r(s))==null||n.setDescProps(e)}}]}export{p as u};
|