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/UserInfo/UserInfoABACAttributes.tsx

26 lines
773 B

import type { IAbacAttributeDefinition } from '@rocket.chat/core-typings';
import { Box, Margins } from '@rocket.chat/fuselage';
import UserInfoABACAttribute from './UserInfoABACAttribute';
type UserInfoABACAttributesProps = {
abacAttributes: IAbacAttributeDefinition[];
};
const UserInfoABACAttributes = ({ abacAttributes }: UserInfoABACAttributesProps) => {
return (
<Box m='neg-x2'>
<Box flexWrap='wrap' display='flex' flexShrink={0} mb={8}>
{abacAttributes.map((attribute, index) =>
attribute.values.map((value) => (
<Margins inline={2} blockEnd={4} key={`${attribute.key}-${value}-${index}`}>
<UserInfoABACAttribute attribute={value} />
</Margins>
)),
)}
</Box>
</Box>
);
};
export default UserInfoABACAttributes;