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 Strikethrough(props: { attr: ToolAttr }) { const lang = props.attr.lang; return ( ); } function StrikethroughContent(props: { attr: ToolAttr }) { const ctx = React.useContext(ToolContext); return (
{ const attr = props.attr; attr.event.emit(attr.editEvent.strikeThrough, !ctx.isStrikethrough); }} >
); }