<?php

namespace Webkul\Product\Filament\Resources\PackagingResource\Pages;

use Filament\Actions\CreateAction;
use Filament\Notifications\Notification;
use Filament\Resources\Pages\ManageRecords;
use Webkul\Product\Filament\Resources\PackagingResource;

class ManagePackagings extends ManageRecords
{
    protected static string $resource = PackagingResource::class;

    protected function getHeaderActions(): array
    {
        return [
            CreateAction::make()
                ->label(__('products::filament/resources/packaging/pages/manage-packagings.header-actions.create.label'))
                ->icon('heroicon-o-plus-circle')
                ->successNotification(
                    Notification::make()
                        ->success()
                        ->title(__('products::filament/resources/packaging/pages/manage-packagings.header-actions.create.notification.title'))
                        ->body(__('products::filament/resources/packaging/pages/manage-packagings.header-actions.create.notification.body')),
                ),
        ];
    }
}
