mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
31 lines
537 B
TypeScript
31 lines
537 B
TypeScript
import clsx from "clsx";
|
|
import { Button } from "react-aria-components";
|
|
import { SendouPopover } from "./elements/Popover";
|
|
import styles from "./InfoPopover.module.css";
|
|
|
|
export function InfoPopover({
|
|
children,
|
|
tiny = false,
|
|
className,
|
|
}: {
|
|
children: React.ReactNode;
|
|
tiny?: boolean;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<SendouPopover
|
|
trigger={
|
|
<Button
|
|
className={clsx(styles.trigger, className, {
|
|
[styles.triggerTiny]: tiny,
|
|
})}
|
|
>
|
|
?
|
|
</Button>
|
|
}
|
|
>
|
|
{children}
|
|
</SendouPopover>
|
|
);
|
|
}
|