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/client/components/Header/ToolBoxAction.tsx

32 lines
490 B

import { ActionButton } from '@rocket.chat/fuselage';
import React, { FC } from 'react';
const ToolBoxAction: FC<any> = ({
id,
icon,
color,
title,
action,
className,
tabId,
index,
...props
}) => (
<ActionButton
className={className}
primary={tabId === id}
onClick={action}
title={title}
data-toolbox={index}
key={id}
icon={icon}
position='relative'
ghost
tiny
overflow='visible'
color={!!color && color}
{...props}
/>
);
export default ToolBoxAction;