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/Page/PageBlockWithBorder.tsx

22 lines
628 B

import type { Box } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';
import React, { forwardRef, useContext } from 'react';
import PageContent from './PageContent';
import PageContext from './PageContext';
const PageBlockWithBorder = forwardRef<HTMLElement, ComponentProps<typeof Box>>(function PageBlockWithBorder(props, ref) {
const [border] = useContext(PageContext);
return (
<PageContent
{...props}
pb='x16'
ref={ref}
borderBlockEndColor={border ? 'extra-light' : 'transparent'}
borderBlockEndWidth='default'
height='auto'
/>
);
});
export default PageBlockWithBorder;