sendou.ink/app/features/top-search/components/HowToLinkPopover.tsx
Kalle a4dfd82141
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
User card (#3213)
2026-07-05 08:28:42 +03:00

52 lines
1.5 KiB
TypeScript

import { Trans, useTranslation } from "react-i18next";
import { SendouButton } from "~/components/elements/Button";
import { SendouPopover } from "~/components/elements/Popover";
import { SENDOU_INK_DISCORD_URL } from "~/utils/urls";
import styles from "./HowToLinkPopover.module.css";
const EXAMPLE_PLAYER_URL = "https://sendou.ink/xsearch/player/0";
export function HowToLinkPopover() {
const { t } = useTranslation(["common"]);
return (
<SendouPopover
trigger={
<SendouButton variant="minimal" size="small" className="self-start">
{t("common:xsearch.link.trigger")}
</SendouButton>
}
>
<div className={styles.content}>
<div>
<div className="font-bold">
{t("common:xsearch.link.about.title")}
</div>
<ul className={styles.list}>
<li>{t("common:xsearch.link.about.endPower")}</li>
<li>{t("common:xsearch.link.about.notPeak")}</li>
<li>{t("common:xsearch.link.about.wait")}</li>
</ul>
</div>
<div className="stack sm">
<div>
<Trans t={t} i18nKey="common:xsearch.link.example">
Post this message on our Discord (
<a href={SENDOU_INK_DISCORD_URL} target="_blank" rel="noreferrer">
discord.gg/sendou
</a>
), on the #helpdesk channel:
</Trans>
</div>
<code className={styles.example}>
{t("common:xsearch.link.exampleRequest")} {EXAMPLE_PLAYER_URL}
</code>
</div>
<div className="text-lighter">
{t("common:xsearch.link.noScreenshots")}
</div>
</div>
</SendouPopover>
);
}