<?php

namespace App\Filament\Resources\PackagingProductResource\Pages;

use App\Filament\Resources\PackagingProductResource;
use App\Filament\Resources\ProductResource\Pages\CreateProduct;
use App\Models\Catalog\Product;

/**
 * Extends the ordinary product Create page rather than reimplementing it:
 * SKU generation, the auto-barcode-from-SKU fallback (the record still gets
 * one — this page just never shows it), attribute sync and the
 * "product.created" audit entry are all identical for a packaging item, since
 * it is the same {@see Product} model underneath.
 * Overriding $resource is enough — every inherited method reads it via
 * `static::`, so it already resolves to PackagingProductResource.
 */
class CreatePackagingProduct extends CreateProduct
{
    protected static string $resource = PackagingProductResource::class;
}
