<script setup lang="ts">
import { Head } from '@inertiajs/vue3';
import StockPendingSection from './table/StockPendingSection.vue';
import AdminLayout from '@/layouts/AdminLayout.vue';
import type { CuttingListItem } from '@/types/cutting';

defineProps<{
    pendingCuttings: CuttingListItem[];
}>();
</script>

<template>
    <Head title="Verifikasi Stok" />

    <AdminLayout>
        <div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
            <div class="space-y-1">
                <h2 class="text-2xl font-bold tracking-tight">
                    Verifikasi Stok
                </h2>
                <p class="text-muted-foreground text-sm">
                    Verifikasi hasil cutting untuk menambahkan stok produk ke toko.
                </p>
            </div>
        </div>

        <StockPendingSection :cuttings="pendingCuttings" />
    </AdminLayout>
</template>
