sendou.ink/app/components/InfoPopover.tsx
Kalle d4d6002344
New results tab for tournaments (#1876)
* 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
2024-09-08 11:25:10 +03:00

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>
);
}