1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-17 03:34:27 +07:00
verdaccio-ui/src/muiComponents/IconButton/IconButton.tsx

13 lines
455 B
TypeScript
Raw Normal View History

import React, { forwardRef } from 'react';
import { default as MuiIconButton, IconButtonProps } from '@material-ui/core/IconButton';
type IconButtonRef = HTMLElementTagNameMap['button'];
/* eslint-disable verdaccio/jsx-spread */
// eslint-disable-next-line react/display-name
const IconButton = forwardRef<IconButtonRef, IconButtonProps>(function IconButton(props, ref) {
return <MuiIconButton {...props} ref={ref} />;
});
export default IconButton;