mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 00:27:11 +00:00
20 lines
566 B
TypeScript
20 lines
566 B
TypeScript
import { Competition } from "@/shared/types";
|
|
import { CompetitionCard } from "../../components/CompetitionCard";
|
|
import { Link } from "react-router";
|
|
|
|
interface CompetitionGridProps {
|
|
competitions: Competition[];
|
|
}
|
|
|
|
export function CompetitionGrid({ competitions }: CompetitionGridProps) {
|
|
return (
|
|
<div className="grid grid-cols-3 gap-9">
|
|
{competitions.map((competition) => (
|
|
<Link key={competition.id} to={`/competition/${competition.id}`}>
|
|
<CompetitionCard competition={competition} />
|
|
</Link>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|