<?php

namespace App\Filament\Concerns;

use Filament\Actions\Action;

trait HasPageTour
{
    protected function getTourAction(): Action
    {
        return Action::make('takeTour')
            ->label(__('Take Tour'))
            ->icon('heroicon-o-academic-cap')
            ->color('gray')
            ->action(function (): void {
                $this->dispatch('start-page-tour');
            });
    }
}
