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/UserCardDialog.tsx

30 lines
665 B

import { Box } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';
import { useRef } from 'react';
import type { AriaDialogProps } from 'react-aria';
import { useDialog } from 'react-aria';
type UserCardDialogProps = AriaDialogProps & ComponentProps<typeof Box>;
const UserCardDialog = (props: UserCardDialogProps) => {
const ref = useRef(null);
const { dialogProps } = useDialog(props, ref);
return (
<Box
ref={ref}
minHeight='x214'
rcx-user-card
bg='surface'
elevation='2'
p={24}
display='flex'
borderRadius='x4'
width='439px'
{...props}
{...dialogProps}
/>
);
};
export default UserCardDialog;