import { UnwrapRef } from '@vue/reactivity' ; import { useSetup } from './useSetup' ; export function defineComponent < PropsType , State > ( setupFunction , renderFunction ) { return ( props ) => { const state = useSetup ( setupFunction , props ) ; return renderFunction ( state ) ; } ; }