pleroma/src/layouts/groups-layout.tsx
marcin mikołajczak 7cc98b7293 Rename pages to layouts
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-24 15:01:35 +02:00

31 lines
721 B
TypeScript

import React from 'react';
import { Column, Layout } from 'soapbox/components/ui';
import LinkFooter from 'soapbox/features/ui/components/link-footer';
import { MyGroupsPanel, NewGroupPanel } from 'soapbox/features/ui/util/async-components';
interface IGroupsLayout {
children: React.ReactNode;
}
/** Layout to display groups. */
const GroupsLayout: React.FC<IGroupsLayout> = ({ children }) => (
<>
<Layout.Main>
<Column withHeader={false}>
<div className='space-y-4'>
{children}
</div>
</Column>
</Layout.Main>
<Layout.Aside>
<NewGroupPanel />
<MyGroupsPanel />
<LinkFooter />
</Layout.Aside>
</>
);
export { GroupsLayout as default };