<script setup lang="ts">
import { Send } from '@lucide/vue';
import { Button } from '@/components/ui/button';
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';

defineProps<{
    tooltip?: string;
    disabled?: boolean;
}>();

defineEmits<{
    click: [];
}>();
</script>

<template>
    <Tooltip>
        <TooltipTrigger as-child>
            <Button variant="ghost" size="icon" class="size-8 text-blue-600 hover:text-blue-700" :disabled="disabled"
                @click="$emit('click')">
                <Send class="size-4" />
                <span class="sr-only">{{ tooltip || 'Ajukan Verifikasi' }}</span>
            </Button>
        </TooltipTrigger>
        <TooltipContent>{{ tooltip || 'Ajukan Verifikasi' }}</TooltipContent>
    </Tooltip>
</template>
