The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/VerticalBar/VerticalBarAction.tsx

13 lines
435 B

import { ActionButton, Icon } from '@rocket.chat/fuselage';
import React, { ReactElement, memo, MouseEventHandler, ComponentProps } from 'react';
const VerticalBarAction = ({
name,
...props
}: {
name: ComponentProps<typeof Icon>['name'];
title?: string;
onClick?: MouseEventHandler<HTMLOrSVGElement>;
}): ReactElement => <ActionButton flexShrink={0} icon={name} ghost {...props} tiny />;
export default memo(VerticalBarAction);