mirror of
https://github.com/SomboChea/ui
synced 2024-10-01 05:47:50 +07:00
11 lines
369 B
TypeScript
11 lines
369 B
TypeScript
|
import React, { forwardRef } from 'react';
|
||
|
import { default as MaterialUIToolbar, ToolbarProps } from '@material-ui/core/Toolbar';
|
||
|
|
||
|
type ToolbarRef = HTMLElementTagNameMap[keyof HTMLElementTagNameMap];
|
||
|
|
||
|
const Toolbar = forwardRef<ToolbarRef, ToolbarProps>(function Toolbar(props, ref) {
|
||
|
return <MaterialUIToolbar {...props} ref={ref} />;
|
||
|
});
|
||
|
|
||
|
export default Toolbar;
|