Add social share boxes to Grid Tiling Puzzle and Sunny Lines Puzzle

This commit is contained in:
Neeldhara Misra 2025-07-23 06:07:52 +05:30
parent 2ccd2fec3a
commit 146cc4cdcd
2 changed files with 22 additions and 2 deletions

View file

@ -4,6 +4,7 @@ import { Button } from '@/components/ui/button';
import { Badge } from '@/components/ui/badge';
import { Alert, AlertDescription } from '@/components/ui/alert';
import { CheckCircle, XCircle, Info, ChevronDown, ChevronUp } from 'lucide-react';
import SocialShare from '@/components/SocialShare';
interface Rectangle {
id: number;
@ -409,6 +410,15 @@ const GridTilingPuzzle: React.FC<GridTilingPuzzleProps> = ({ showSocialShare = t
</CardContent>
</Card>
)}
{/* Social Share */}
{showSocialShare && (
<SocialShare
title="Grid Tiling Puzzle - IMO 2025"
description="Place rectangular tiles on a grid so that each row and column has exactly one uncovered square. Based on IMO 2025 Problem P6."
url="/contest-problems/grid-tiling"
/>
)}
</div>
);
};