RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/components/UserInfo/UserInfoAction.tsx

Summary

Maintainability
A
0 mins
Test Coverage
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;