import { useCallback } from "react";

export interface OverlaySettingsModel {
  handleShowOverlay: () => void;
  eyebrow: string;
  title: string;
  statusHeadline: string;
  statusText: string;
  buttonLabel: string;
  buttonTitle: string;
}

interface UseOverlaySettingsModelInput {
  onShowOverlay: () => void;
}

export function useOverlaySettingsModel({ onShowOverlay }: UseOverlaySettingsModelInput): OverlaySettingsModel {
  const handleShowOverlay = useCallback(() => {
    void onShowOverlay();
  }, [onShowOverlay]);

  return {
    handleShowOverlay,
    eyebrow: "Farming overlay",
    title: "Read-only reward assistant",
    statusHeadline: "Aktueller MVP-Status",
    statusText:
      "Click-through Preview mit echten lokalen Recommendations. Live Reward Scan und Auto-DB-Sync kommen danach.",
    buttonLabel: "Show overlay preview",
    buttonTitle: "Overlay oeffnen.",
  };
}
