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