import { defineComponent } from 'vue';
export default (name: string, Comp: any, props: Record<string, any>) =>
  defineComponent({
    name,
    inheritAttrs: false,
    setup:
      (_props, { attrs, slots }) =>
      () =>
        <Comp {...props} {...attrs} v-slots={slots} />
  });
