import * as React from 'react'; import { ICommand, TextState, TextApi } from './'; export const hr: ICommand = { name: 'hr', keyCommand: 'hr', shortcuts: 'ctrlcmd+h', buttonProps: { 'aria-label': 'Insert HR', title: 'Insert HR' }, icon: ( ), execute: (state: TextState, api: TextApi) => { api.replaceSelection(`${state.selectedText}\n\n----------\n\n`); }, };