sendou.ink/app/components/InfoPopover.tsx
Kalle c3944070b9
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
Refactor popover to use React Aria components (#2069)
* Initial

* Progress

* Progress

* SQ work

* Migrate rest

* Clean up

* Rename style file
2025-02-02 12:03:39 +02:00

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