/* eslint-disable import/no-extraneous-dependencies */
import ElementButton from '@payloadcms/richtext-slate/dist/field/elements/Button'
// eslint-disable-next-line no-use-before-define
import React from 'react'

import Icon from '../Icon'

const baseClass = 'rich-text-large-body-button'

const ToolbarButton: React.FC<{ path: string }> = () => (
  <ElementButton className={baseClass} format="large-body">
    <Icon />
  </ElementButton>
)

export default ToolbarButton
