import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { observer } from 'mobx-react'; import * as React from 'react'; import { createSchema, makeInterface } from '../../../fields/Schema'; import { StrCast } from '../../../fields/Types'; import { DocComponent } from '../DocComponent'; import { FieldView, FieldViewProps } from './FieldView'; import './MenuIconBox.scss'; const MenuIconSchema = createSchema({ icon: "string" }); type MenuIconDocument = makeInterface<[typeof MenuIconSchema]>; const MenuIconDocument = makeInterface(MenuIconSchema); @observer export class MenuIconBox extends DocComponent(MenuIconDocument) { public static LayoutString(fieldKey: string) { return FieldView.LayoutString(MenuIconBox, fieldKey); } _ref: React.RefObject = React.createRef(); render() { const color = this.props.backgroundColor?.(this.props.Document) === "lightgrey" ? "black" : "white"; const menuBTN =
{this.dataDoc.title}
; return menuBTN; } }