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/views/admin/info/DescriptionList.js

21 lines
547 B

import { Box, Table } from '@rocket.chat/fuselage';
import React, { memo } from 'react';
import DescriptionListEntry from './DescriptionListEntry';
const DescriptionList = ({ children, title, ...props }) => (
<>
{title && (
<Box display='flex' justifyContent='flex-end' width='30%' paddingInline='x8'>
{title}
</Box>
)}
<Table striped marginBlockEnd='x32' width='full' {...props}>
<Table.Body>{children}</Table.Body>
</Table>
</>
);
export default Object.assign(memo(DescriptionList), {
Entry: DescriptionListEntry,
});