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/GenericTable/V2/GenericTable.tsx

21 lines
624 B

import { Box, Table } from '@rocket.chat/fuselage';
import React, { forwardRef, ReactNode } from 'react';
import ScrollableContentWrapper from '../../ScrollableContentWrapper';
type GenericTableProps = {
fixed?: boolean;
children: ReactNode;
};
export const GenericTable = forwardRef<HTMLElement, GenericTableProps>(function GenericTable({ fixed = true, children }, ref) {
return (
<Box mi='neg-x24' pi='x24' flexShrink={1} flexGrow={1} ref={ref} overflow='hidden'>
<ScrollableContentWrapper overflowX>
<Table fixed={fixed} sticky>
{children}
</Table>
</ScrollableContentWrapper>
</Box>
);
});