import * as React from "react"; export interface NoticeTextSelectionProps { text: string, idSuffix: string, onClick?: (event: React.MouseEvent) => unknown } export interface NoticeTextSelectionState { } class NoticeTextSelectionComponent extends React.Component { constructor(props: NoticeTextSelectionProps) { super(props); } render(): React.ReactElement { const style: React.CSSProperties = {}; if (this.props.onClick) { style.cursor = "pointer"; style.textDecoration = "underline" } return (

{this.props.text}

); } } export default NoticeTextSelectionComponent;