sendou.ink/app/components/InfoPopover.tsx
Kalle fef1ffc955
Design refresh + a bunch of stuff (#2864)
Co-authored-by: hfcRed <hfcred@gmx.net>
2026-03-19 17:51:42 +02:00

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