import BulgarianSolitaire from "@/components/BulgarianSolitaire";
import { useSearchParams } from "react-router-dom";

const BulgarianSolitairePage = () => {
  const [searchParams] = useSearchParams();
  const from = searchParams.get('from');

  if (from === 'puzzles') {
    return (
      <div className="min-h-screen bg-background">
        <div className="container mx-auto px-4 py-8 space-y-6">
          <div className="flex items-center gap-4">
            <button 
              onClick={() => window.location.href = '/themes/puzzles'}
              className="text-primary hover:text-primary/80 font-medium"
            >
              ← Back to Puzzles
            </button>
          </div>
          <BulgarianSolitaire showSocialShare={true} />
        </div>
      </div>
    );
  }

  return <BulgarianSolitaire showSocialShare={true} />;
};

export default BulgarianSolitairePage;