import React, { useState } from "react"; import { Trans, useTranslation } from "react-i18next"; import { Icon, Icons } from "@/components/Icon"; import { ThinContainer } from "@/components/layout/ThinContainer"; import { Heading1, Paragraph } from "@/components/utils/Text"; import { PageTitle } from "@/pages/parts/util/PageTitle"; import { conf } from "@/setup/config"; import { SubPageLayout } from "./layouts/SubPageLayout"; export function shouldHaveDmcaPage() { return !!conf().DMCA_EMAIL; } export function DmcaPage() { const { t } = useTranslation(); const [isHovered, setIsHovered] = useState(false); return ( {t("screens.dmca.title")} , }} /> setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} > {conf().DMCA_EMAIL ?? ""} ); }