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,38 @@
import { FC } from "react";
import { v4 as uuidv4 } from "uuid";
import { BuilderHelperTextInfoContract } from "@dndbeyond/character-rules-engine";
import { DdbBadgeSvg } from "~/tools/js/smartComponents/Svg";
import { Accordion, AccordionProps } from "../Accordion";
import { HtmlContent } from "../HtmlContent";
import styles from "./styles.module.css";
export interface HelperTextAccordionProps
extends Omit<AccordionProps, "summary"> {
builderHelperText: BuilderHelperTextInfoContract[];
}
export const HelperTextAccordion: FC<HelperTextAccordionProps> = ({
builderHelperText,
...props
}) => {
return (
<>
{builderHelperText.map((helperText, idx) => (
<Accordion
{...props}
key={uuidv4()}
summary={
<span className={styles.summary}>
<DdbBadgeSvg /> {helperText.label}
</span>
}
>
<HtmlContent html={helperText.description} />
</Accordion>
))}
</>
);
};