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/apps/meteor/client/components/UserCard/UserCardActions.tsx

15 lines
540 B

import { useToolbar } from '@react-aria/toolbar';
import { ButtonGroup } from '@rocket.chat/fuselage';
import type { ReactElement, ComponentProps } from 'react';
import React, { useRef } from 'react';
type UserCardActionsProps = ComponentProps<typeof ButtonGroup>;
const UserCardActions = (props: UserCardActionsProps): ReactElement => {
const ref = useRef<HTMLDivElement>(null);
const { toolbarProps } = useToolbar(props, ref);
return <ButtonGroup ref={ref} small {...toolbarProps} {...props} />;
};
export default UserCardActions;