import React from "react"; import { icons } from "../../icons"; import { DropButton } from "./widget"; import { ToolAttr } from "../utils"; export function FontFamily(props: { attr: ToolAttr }) { const lang = props.attr.lang; return ( {item.label}, value: item.value, }; })} getCurValue={() => { const attr = props.attr; return attr.currentState.inlineStyle?.fontFamily; }} onSelect={(item) => { const attr = props.attr; attr.event.emit(attr.editEvent.fontFamily, item.value); }} > ); }