import React from "react"; import clsx from "clsx"; import { Tooltip } from "@gland/react/popover"; import { icons } from "../icons"; import { richClasses as classes } from "../style"; import { editEvent } from "../editEvent"; export function Comment(props) { const ele = React.cloneElement(props.children[0], { custom: , }); return ele; } function CommentContent(props) { const { data, context, entityKey, children } = props.props; const { title, description } = data; return ( {title ?
{title}
: null}
{description}
} beakWidth={10} >
{ context.event.emit(editEvent.openEditComment, { key: entityKey, data }); } } >
); }