apps/meteor/client/views/omnichannel/agents/AgentInfoAction.tsx
import { Button } from '@rocket.chat/fuselage';
import type { Keys as IconName } from '@rocket.chat/icons';
import type { HTMLAttributes } from 'react';
import React from 'react';
type AgentInfoActionProps = {
icon: IconName;
label?: string;
title?: string;
} & Omit<HTMLAttributes<HTMLElement>, 'is'>;
const AgentInfoAction = ({ icon, label, ...props }: AgentInfoActionProps) => (
<Button icon={icon} data-qa={`agent-info-action-${label?.toLowerCase()}`} title={label} {...props}>
{label}
</Button>
);
export default AgentInfoAction;