/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import MarkdownRender from "./MarkdownRender"; import { Widget } from "../models"; import ShareButton from "./ShareButton"; import Utils from "../services/UtilsService"; interface Props { widget: Widget; hideTitle?: boolean; } function TextWidget(props: Props) { const { content, showTitle, name } = props.widget; const textId = `text-${Utils.getShorterId(props.widget.id)}`; return (
{!props.hideTitle && showTitle && (

{name}

)}
); } export default TextWidget;