import React from 'react'; import type { SlateProps } from '../types/component'; import PluginButton from './PluginButton'; import { useTheme } from '@mui/material'; const Controls = (props: Pick) => { const { plugins, translations } = props; const theme = useTheme(); const dark = theme.palette.mode === 'dark'; return (
{plugins && plugins.map((plugin, i: number) => plugin.addToolbarButton ? ( ) : null )}
); }; export default React.memo(Controls);