import type { FC, PropsWithChildren } from 'react'; import React from 'react'; import { BottomToolbarDrawer } from './Drawer'; import { BottomToolbarMainBar } from './NodeTools'; import { ScaleButton } from './ScaleButton'; import type { BottomToolbarProps } from './types'; export * from './types'; export * from './Drawer'; export * from './NodeTools'; export * from './Tools'; export const BottomToolbar: FC> = React.memo( ({ open = false, className, anchor = 'bottom', pluginControls, nodeId, actionsLeft, style, children, }) => { const [scale, setScale] = React.useState(1); return ( {children} {pluginControls} , ...React.Children.toArray(actionsLeft), ]} /> ); } );