"use client"; import { useTranslations } from "next-intl"; import { FC } from "react"; interface Props { className?: string; once?: boolean; register?: string; visit?: string; details?: string; } function toExternalUrl(url: string) { if (!/^https?:\/\//i.test(url)) return `https://${url}`; return url; } export const EventPageButtons: FC = ({ once = false, register, visit, details, }) => { const t = useTranslations("events"); return (
{once ? ( <> ) : ( )}
); };