<template>
	<view @click="doAction(actionInfo)">
        <slot></slot>
    </view>
</template>

<script setup lang="ts">
import { defineProps } from 'vue';
import type { ActionInfo } from '../../types/basic';
import { doAction } from '../../commons/utils/action';

const { actionInfo } = defineProps<{
    actionInfo: ActionInfo
}>()
</script>