import React from "react"; import BaseWidget, { IWidgetProps, IWidgetState } from "./BaseWidget"; import { WidgetType } from "../constants/WidgetConstants"; import TextComponent from "../editorComponents/TextComponent"; class TextWidget extends BaseWidget { getPageView() { return ( ); } getWidgetType(): WidgetType { return "TEXT_WIDGET"; } } export type TextStyle = "BODY" | "HEADING" | "LABEL" | "SUB_TEXT" export interface TextWidgetProps extends IWidgetProps { text?: string; textStyle?: TextStyle tagName?: keyof JSX.IntrinsicElements; } export default TextWidget;