{"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-prop/index.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":[],"mappings":";;AAGa,MAAA,OAAA,GAAU,CAAI,IAA6C,KAAA;AACtE,EAAA,MAAM,KAAK,kBAAmB,EAAA,CAAA;AAC9B,EAAA,OAAO,SAAS,MAAO,CAAA,EAAA,CAAG,KAAO,EAAA,MAAA,EAAe,SAAS,KAAS,CAAA,CAAA,CAAA;AACpE;;;;"}