``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
21 lines
492 B
TypeScript
21 lines
492 B
TypeScript
import React from "react";
|
|
|
|
interface Props {
|
|
name: string;
|
|
IconComponent: React.ComponentType;
|
|
}
|
|
export default class SectionPlaceholder extends React.PureComponent<Props> {
|
|
render() {
|
|
const { name, IconComponent } = this.props;
|
|
|
|
return (
|
|
<div className="ct-section-placeholder">
|
|
<div className="ct-section-placeholder__name">{name}</div>
|
|
<div className="ct-section-placeholder__icon">
|
|
<IconComponent />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|