pleroma/src/pages/groups-page.tsx

32 lines
711 B
TypeScript
Raw Normal View History

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 IGroupsPage {
children: React.ReactNode;
}
/** Page to display groups. */
const GroupsPage: React.FC<IGroupsPage> = ({ children }) => (
<>
<Layout.Main>
<Column withHeader={false}>
<div className='space-y-4'>
{children}
</div>
</Column>
</Layout.Main>
<Layout.Aside>
<NewGroupPanel />
<MyGroupsPanel />
2023-03-08 10:22:10 -08:00
<LinkFooter />
</Layout.Aside>
</>
);
export { GroupsPage as default };