sendou.ink/app/components/InfoPopover.tsx
Kalle dd1adad94b
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
BIome v2 upgrade
2025-06-22 16:49:27 +03:00

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