import React from 'react'; import { StyledEditorToolbar } from '../libs'; import { STYLED_HEADINGS, IEditorToolbarProps } from '../types'; /** * @description {Toolbar} - The toolbar for the editor. * @param {string} id - The id of the toolbar * @param {boolean} simple - Whether the toolbar is simple * @param {any} other - Other props for the toolbar * @return {JSX.Element} The rendered toolbar component */ export const Toolbar = ({ id, simple, ...other }: IEditorToolbarProps) => (
{!simple && (
)}
{!simple && (
)} {!simple && (
)}