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

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

<template>
    <Tooltip>
        <TooltipTrigger as-child>
            <Button variant="ghost" size="icon" class="size-8 text-green-600 hover:text-green-700" :disabled="disabled">
                <Check class="size-4" />
                <span class="sr-only">{{ tooltip || 'Setujui' }}</span>
            </Button>
        </TooltipTrigger>
        <TooltipContent>{{ tooltip || 'Setujui' }}</TooltipContent>
    </Tooltip>
</template>
