import React from "react"; import clsx from "clsx"; import { ToolContext, ToolAttr } from "../utils"; import { icons } from "../../icons"; import { toolNormalBtn, toolClasses as classes } from "../style"; import { BtnTip } from "./widget"; export function Underline(props: { attr: ToolAttr }) { const lang = props.attr.lang; return ( ); } function UnderlineContent(props: { attr: ToolAttr }) { const ctx = React.useContext(ToolContext); return (
{ const attr = props.attr; attr.event.emit(attr.editEvent.underline, !ctx.isUnderline); }} >
); }