mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -05:00
* Initial * Try npm in deploy script * Progress * Progress * Progress * Add missing index * Title to user results page * Hide SPR before tournament over * Results page and redirect * SPR info * Row bg colors * Laoyut shift fix * Hide Swiss start round button if bracket is in preview * Fix e2e test * Not needed * one more revert
19 lines
357 B
TypeScript
19 lines
357 B
TypeScript
import clsx from "clsx";
|
|
import { Popover } from "./Popover";
|
|
|
|
export function InfoPopover({
|
|
children,
|
|
tiny = false,
|
|
}: { children: React.ReactNode; tiny?: boolean }) {
|
|
return (
|
|
<Popover
|
|
buttonChildren={<>?</>}
|
|
triggerClassName={clsx("info-popover__trigger", {
|
|
"info-popover__trigger__tiny": tiny,
|
|
})}
|
|
>
|
|
{children}
|
|
</Popover>
|
|
);
|
|
}
|