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 React from "react";
|
||||
|
||||
import { CharacterTheme } from "@dndbeyond/character-rules-engine/es";
|
||||
|
||||
interface Props {
|
||||
StyleComponent: React.ComponentType<any>;
|
||||
theme: CharacterTheme;
|
||||
className: string;
|
||||
}
|
||||
export default class BoxBackground extends React.PureComponent<Props> {
|
||||
static defaultProps = {
|
||||
className: "",
|
||||
};
|
||||
|
||||
render() {
|
||||
const { StyleComponent, theme, className } = this.props;
|
||||
|
||||
let classNames: Array<string> = ["ddbc-box-background", className];
|
||||
|
||||
return (
|
||||
<div className={classNames.join(" ")}>
|
||||
<StyleComponent theme={theme} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import BoxBackground from "./BoxBackground";
|
||||
|
||||
export default BoxBackground;
|
||||
export { BoxBackground };
|
||||
Reference in New Issue
Block a user