``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
34 lines
711 B
TypeScript
34 lines
711 B
TypeScript
import * as React from "react";
|
|
|
|
import { Tooltip } from "@dndbeyond/character-common-components/es";
|
|
import { CharacterTheme } from "@dndbeyond/character-rules-engine/es";
|
|
|
|
interface Props {
|
|
title: string;
|
|
className: string;
|
|
theme?: CharacterTheme;
|
|
}
|
|
|
|
export default class TodoIcon extends React.PureComponent<Props> {
|
|
static defaultProps = {
|
|
title: "Missing",
|
|
className: "",
|
|
};
|
|
|
|
render() {
|
|
const { title, className, theme } = this.props;
|
|
|
|
let classNames: Array<string> = [className, "ddbc-todo-icon"];
|
|
|
|
return (
|
|
<Tooltip
|
|
title={title}
|
|
className={classNames.join(" ")}
|
|
isDarkMode={theme?.isDarkMode}
|
|
>
|
|
!
|
|
</Tooltip>
|
|
);
|
|
}
|
|
}
|