/**
 * @fileoverview Utility module for usePlaygroundTour.js
 * 
 * @module pages.Playground.hooks.usePlaygroundTour
 */

import { useTour } from "../../../hooks/useTour";
import { tourSteps, tourOptions } from "../config/tourSteps";

const TOUR_STORAGE_KEY = "playground-tour-completed";

/**
 * Hook específico do Playground que usa o useTour genérico
 * Mantém a mesma interface para compatibilidade
 */
export const usePlaygroundTour = () => {
  const { startTour, completeTour, resetTour } = useTour({
    steps: tourSteps,
    options: tourOptions,
    storageKey: TOUR_STORAGE_KEY,
    autoStart: true,
    startDelay: 1000,
  });

  return {
    startTour,
    completeTour,
    resetTour,
  };
};
