File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -62,15 +62,16 @@ const ToolbarGroup: React.FC<{ items: ToolbarItem[] }> = ({ items }) => {
6262 )
6363}
6464
65- export const Toolbar : React . FC < { toolbar : ToolbarGroup [ ] } > = React . memo (
66- ( { toolbar } ) => {
67- return (
68- < div className = "prosemirror-toolbar" >
69- { toolbar . map ( ( group ) => (
70- < ToolbarGroup key = { group . id } items = { group . items } />
71- ) ) }
72- </ div >
73- )
74- }
75- )
65+ export const Toolbar : React . FC < {
66+ toolbar : ToolbarGroup [ ]
67+ className ?: string
68+ } > = React . memo ( ( { toolbar, className = '' } ) => {
69+ return (
70+ < div className = { `prosemirror-toolbar ${ className } ` } >
71+ { toolbar . map ( ( group ) => (
72+ < ToolbarGroup key = { group . id } items = { group . items } />
73+ ) ) }
74+ </ div >
75+ )
76+ } )
7677Toolbar . displayName = 'Toolbar'
You can’t perform that action at this time.
0 commit comments