import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React, { Component } from 'react'; import { BoolCast } from '../../../../../fields/Types'; import { IButtonProps } from '../ButtonInterface'; export class TextButton extends Component { render() { const type = this.props.type; // Determine the type of toggle button const buttonText: boolean = BoolCast(this.props.rootDoc.switchToggle); return (
{this.props.label}
) } }