{"version":3,"file":"index5.mjs","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":";AAGa,MAAAA,IAAU,CAAIC,MAA6C;AACtE,QAAMC,IAAKC;AACX,SAAOC,EAAS,MAAO;;AAAA,YAAAC,MAAAC,IAAAJ,EAAG,UAAH,gBAAAI,EAAU,QAAeL,OAAzB,OAAAI,IAAkC;AAAA,GAAS;AACpE;"}