<?php

namespace Stephenjude\FilamentFeatureFlag;

use Filament\Contracts\Plugin;
use Filament\Panel;
use Stephenjude\FilamentFeatureFlag\Resources\FeatureSegmentResource;

class FeatureFlagPlugin implements Plugin
{
    public function getId(): string
    {
        return 'filament-feature-flag';
    }

    public function register(Panel $panel): void
    {
        $panel
            ->resources([
                FeatureSegmentResource::class,
            ]);
    }

    public function boot(Panel $panel): void
    {
        //
    }

    public static function make(): static
    {
        return app(static::class);
    }
}
