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:
+30
@@ -0,0 +1,30 @@
|
||||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
label: React.ReactNode;
|
||||
callout: React.ReactNode;
|
||||
}
|
||||
export default class VehicleBlockSectionHeader extends React.PureComponent<Props> {
|
||||
static defaultProps = {
|
||||
callout: null,
|
||||
};
|
||||
|
||||
render() {
|
||||
const { label, callout } = this.props;
|
||||
|
||||
return (
|
||||
<div className="ct-vehicle-block__section-header">
|
||||
<div className="ct-vehicle-block__section-header-content">
|
||||
<div className="ct-vehicle-block__section-header-content-primary">
|
||||
{label}
|
||||
</div>
|
||||
{callout !== null && (
|
||||
<div className="ct-vehicle-block__section-header-content-callout">
|
||||
{callout}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import VehicleBlockSectionHeader from "./VehicleBlockSectionHeader";
|
||||
|
||||
export default VehicleBlockSectionHeader;
|
||||
export { VehicleBlockSectionHeader };
|
||||
Reference in New Issue
Block a user