Grabbed dndbeyond's source code

```
~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js
```
This commit is contained in:
2025-05-28 11:50:03 -07:00
commit 8df9031d27
3592 changed files with 319051 additions and 0 deletions
@@ -0,0 +1,54 @@
import { FC, ReactNode } from "react";
import { Button } from "../Button";
import styles from "./styles.module.css";
interface PopoverContentProps {
title?: string;
content: string;
confirmText?: ReactNode;
onConfirm?: () => void;
withCancel?: boolean;
handleClose?: () => void;
}
export const PopoverContent: FC<PopoverContentProps> = ({
title,
content,
confirmText = "Confirm",
onConfirm,
withCancel,
handleClose,
}) => (
<>
{title && <header className={styles.deletePopoverHeader}>{title}</header>}
<div className={styles.deletePopoverContent}>{content}</div>
<footer className={styles.deletePopoverFooter}>
{withCancel && (
<Button
size="x-small"
variant="outline"
color="secondary"
themed
data-cancel
>
Cancel
</Button>
)}
{onConfirm && (
<Button
onClick={() => {
if (handleClose) handleClose();
if (onConfirm) onConfirm();
}}
size="x-small"
variant="outline"
color="secondary"
themed
>
{confirmText}
</Button>
)}
</footer>
</>
);