RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/components/UserCard/UserCardAction.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { IconButton } from '@rocket.chat/fuselage';
import type { ReactElement, ComponentProps } from 'react';
import React from 'react';

type UserCardActionProps = ComponentProps<typeof IconButton>;

const UserCardAction = ({ label, icon, ...props }: UserCardActionProps): ReactElement => (
    <IconButton icon={icon} small title={label} {...props} />
);

export default UserCardAction;