/* eslint-disable @next/next/no-img-element */ import { fluxgore, gothampro } from "@/utils/fonts"; import Button from "./Button"; import { useRouter } from "next/router"; interface EventCardProps extends React.HTMLAttributes { image: string; title: string; description: string; link: string; disabled: boolean; } function EventCard(props: EventCardProps) { const router = useRouter(); const handleClick = () => { if (!props.disabled) { // Check if it's an external link if (props.link.startsWith("http")) { window.open(props.link, "_blank"); } else { router.push(props.link); } } }; return (
{props.title}

{props.title}

{props.description}

{!props.disabled && ( )}
); } function Events() { return (
Paper tear

что вас ждет

[Для участия в соревнованиях нажмите кнопку регистрация]

); } export default Events;