apps/meteor/client/components/UserInfo/UserInfoAction.tsx
import { Button } from '@rocket.chat/fuselage';
import type { Keys as IconName } from '@rocket.chat/icons';
import type { ReactElement, ComponentProps } from 'react';
import React from 'react';
type UserInfoActionProps = {
icon: IconName;
} & ComponentProps<typeof Button>;
const UserInfoAction = ({ icon, label, ...props }: UserInfoActionProps): ReactElement => (
<Button icon={icon} title={label} {...props} mi={4}>
{label}
</Button>
);
export default UserInfoAction;