import { Head } from '@inertiajs/react';
import { ProductForm } from '@/components/crm/product-form';
import type { ProductFormOptions, WarehouseAbilities } from '@/types';

export default function ProductsCreate({
    options,
    can,
}: {
    options: ProductFormOptions;
    can: WarehouseAbilities;
}) {
    return (
        <>
            <Head title="New product" />
            <ProductForm options={options} can={can} mode="create" />
        </>
    );
}
