mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 15:08:44 -05:00
25 lines
475 B
TypeScript
25 lines
475 B
TypeScript
import clsx from "clsx";
|
|
import { SendouButton } from "./elements/Button";
|
|
import { SendouPopover } from "./elements/Popover";
|
|
|
|
export function InfoPopover({
|
|
children,
|
|
tiny = false,
|
|
}: { children: React.ReactNode; tiny?: boolean }) {
|
|
return (
|
|
<SendouPopover
|
|
trigger={
|
|
<SendouButton
|
|
className={clsx("info-popover__trigger", {
|
|
"info-popover__trigger__tiny": tiny,
|
|
})}
|
|
>
|
|
?
|
|
</SendouButton>
|
|
}
|
|
>
|
|
{children}
|
|
</SendouPopover>
|
|
);
|
|
}
|