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/apps/meteor/client/components/UserInfo/UserInfoAction.tsx

16 lines
483 B

import { Button, Icon } from '@rocket.chat/fuselage';
import type { ReactElement, ComponentProps } from 'react';
import React from 'react';
type UserInfoActionProps = {
icon: ComponentProps<typeof Icon>['name'];
} & ComponentProps<typeof Button>;
const UserInfoAction = ({ icon, label, ...props }: UserInfoActionProps): ReactElement => (
<Button title={label} {...props} mi='x4'>
<Icon name={icon} size='x20' mie='x4' />
{label}
</Button>
);
export default UserInfoAction;