Initial commit

This commit is contained in:
Zdeněk Burda
2026-01-09 21:26:40 +01:00
parent e83aec6dca
commit 41e3ce6f25
404 changed files with 61250 additions and 28 deletions

View File

@@ -0,0 +1,26 @@
import NewsList from "@/components/NewsList";
import RoundsTable from "@/components/RoundsTable";
import { useUserStore } from "@/stores/userStore";
import { useTranslation } from "react-i18next";
export default function ContestsIndexPage() {
const user = useUserStore((s) => s.user);
const { t } = useTranslation("common");
const showTests = !!user;
return (
<>
<NewsList initialLimit={2}/>
<RoundsTable
title={t("open_rounds_title") ?? "Otevřené a zatím nezpracované závody"}
onlyActive={true}
showActiveColumn={false}
enableRowNavigation
showTests={showTests}
hideInactiveForGuests={!user}
isGuest={!user}
/>
</>
)
}