{"version":3,"file":"index5.cjs","sources":["../../../src/hooks/use-prop.ts"],"sourcesContent":["import { computed, getCurrentInstance } from 'vue'\nimport type { ComputedRef } from 'vue'\n\nexport const useProp = <T>(name: string): ComputedRef<T | undefined> => {\n  const vm = getCurrentInstance()!\n  return computed(() => (vm.proxy?.$props as any)[name] ?? undefined)\n}\n"],"names":["useProp","name","vm","getCurrentInstance","computed","_b","_a"],"mappings":"mIAGaA,EAAcC,GAA6C,CACtE,MAAMC,EAAKC,EAAAA,qBACX,OAAOC,WAAS,IAAO,SAAA,OAAAC,IAAAC,EAAAJ,EAAG,QAAH,YAAAI,EAAU,QAAeL,KAAzB,KAAAI,EAAkC,OAAS,CACpE"}