bigbuffet-rw/app/soapbox/features/ui/components/columns-area.tsx
marcin mikołajczak 81de0014d3 Change ESLint rules, lint
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-02-16 00:12:02 +01:00

31 lines
570 B
TypeScript

import React from 'react';
import { Layout } from '../../../components/ui';
interface IColumnsArea {
layout: any
children: React.ReactNode
}
const ColumnsArea: React.FC<IColumnsArea> = (props) => {
const { children } = props;
const layout = props.layout || { LEFT: null, RIGHT: null };
return (
<Layout>
<Layout.Sidebar>
{layout.LEFT}
</Layout.Sidebar>
<Layout.Main>
{children}
</Layout.Main>
<Layout.Aside>
{layout.RIGHT}
</Layout.Aside>
</Layout>
);
};
export default ColumnsArea;