on df0c310 help sign in
bridge/src/components/L2/Window/BodyPane.tsx
28 lines 509 B history raw
1import React from 'react';
2import { Box, BoxProps } from '@tlon/indigo-react';
4import './BodyPane.scss';
6export interface BodyPaneProps extends BoxProps {
7 children: React.ReactNode;
8 className?: string;
9}
11const BodyPane = ({
12 children,
13 className = '',
14 color,
15 ...props
16}: BodyPaneProps) => {
17 return (
18 <Box
19 className={`body-pane ${className}`}
20 color={color as string & BoxProps['color']}
21 p={3}
22 {...props}>
23 {children}
24 </Box>
25 );
26};
28export default BodyPane;