import React from 'react'; import cmd from '../core/cmd'; type CommandLinkProps = { command?:string; text:string; } function CommandLink(props: CommandLinkProps) { return cmd.execute(props.command || props.text)}>{props.text} } export default CommandLink;