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,47 @@
import React from "react";
import { ThemeButton } from "../common/Button";
interface Props {
onPactChoose: () => void;
onSpellChoose: () => void;
isSpellSlotAvailable: boolean;
isPactSlotAvailable: boolean;
doesSpellSlotExist: boolean;
doesPactSlotExist: boolean;
}
export default class SpellSlotChooser extends React.PureComponent<Props> {
render() {
const {
onPactChoose,
onSpellChoose,
doesSpellSlotExist,
doesPactSlotExist,
isSpellSlotAvailable,
isPactSlotAvailable,
} = this.props;
return (
<div className="ct-spells-slot-chooser">
{doesSpellSlotExist && (
<ThemeButton
onClick={onSpellChoose}
size={"small"}
disabled={!isSpellSlotAvailable}
>
Spell Slot
</ThemeButton>
)}
{doesPactSlotExist && (
<ThemeButton
onClick={onPactChoose}
size={"small"}
disabled={!isPactSlotAvailable}
>
Pact Slot
</ThemeButton>
)}
</div>
);
}
}
@@ -0,0 +1,4 @@
import SpellSlotChooser from "./SpellSlotChooser";
export default SpellSlotChooser;
export { SpellSlotChooser };