27 lines
740 B
TypeScript
27 lines
740 B
TypeScript
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}
|
|
/>
|
|
</>
|
|
)
|
|
}
|