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:
@@ -0,0 +1,26 @@
|
||||
import { FC, HTMLAttributes } from "react";
|
||||
|
||||
import styles from "./styles.module.css";
|
||||
|
||||
export interface SummaryListProps extends HTMLAttributes<HTMLDivElement> {
|
||||
title: string;
|
||||
list: Array<string>;
|
||||
}
|
||||
|
||||
export const SummaryList: FC<SummaryListProps> = ({
|
||||
title,
|
||||
list,
|
||||
...props
|
||||
}) => {
|
||||
if (!list.length) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div {...props}>
|
||||
<p className={styles.title}>
|
||||
{title}: <span className={styles.listItems}>{list.join(", ")}</span>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user