import { ToolbarHTMLProps , ToolbarOptions } from 'reakit/Toolbar/Toolbar' ; import { cx } from '@remirror/core' ; import { ComponentsTheme } from '@remirror/theme' ; import { BootstrapRoleOptions } from './role' ; export type BootstrapToolbarOptions = BootstrapRoleOptions & ToolbarOptions ; export function useToolbarProps ( _ , htmlProps = { } ) { return { ... htmlProps , className : cx ( htmlProps . className , ComponentsTheme . TOOLBAR ) } ; }