<?php

declare(strict_types=1);

namespace App\Filament\Resources\SpaNews\Pages;

use App\Filament\Resources\SpaNews\SpaNewsResource;
use App\Models\Post;
use App\Support\Filament\ContentCrud\Concerns\CreatesContentRecord;
use Filament\Resources\Pages\CreateRecord;

class CreateSpaNews extends CreateRecord
{
    use CreatesContentRecord;

    protected static string $resource = SpaNewsResource::class;

    protected function getContentSection(): string
    {
        return 'spa_news';
    }

    protected function getContentModelClass(): string
    {
        return Post::class;
    }
}
