<?php

namespace App\Filament\Resources\CreditProducts\Pages;

use App\Filament\Resources\CreditProducts\CreditProductResource;
use Filament\Resources\Pages\CreateRecord;

class CreateCreditProduct extends CreateRecord
{
    protected static string $resource = CreditProductResource::class;

    protected function afterCreate(): void
    {
        app(\App\Services\StripeCreditProductSyncer::class)->sync($this->record);
    }
}
