2022-12-15 14:51:30 -08:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { Column, Layout } from 'soapbox/components/ui';
|
|
|
|
import LinkFooter from 'soapbox/features/ui/components/link-footer';
|
2024-04-28 05:50:23 -07:00
|
|
|
import { MyGroupsPanel, NewGroupPanel } from 'soapbox/features/ui/util/async-components';
|
2022-12-15 14:51:30 -08:00
|
|
|
|
2024-08-24 06:01:17 -07:00
|
|
|
interface IGroupsLayout {
|
2023-10-02 11:54:02 -07:00
|
|
|
children: React.ReactNode;
|
2023-01-27 14:04:42 -08:00
|
|
|
}
|
2022-12-15 14:51:30 -08:00
|
|
|
|
2024-08-24 06:01:17 -07:00
|
|
|
/** Layout to display groups. */
|
|
|
|
const GroupsLayout: React.FC<IGroupsLayout> = ({ children }) => (
|
2023-02-05 14:14:21 -08:00
|
|
|
<>
|
|
|
|
<Layout.Main>
|
|
|
|
<Column withHeader={false}>
|
|
|
|
<div className='space-y-4'>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</Column>
|
|
|
|
</Layout.Main>
|
2022-12-15 14:51:30 -08:00
|
|
|
|
2023-02-05 14:14:21 -08:00
|
|
|
<Layout.Aside>
|
2023-10-07 15:14:45 -07:00
|
|
|
<NewGroupPanel />
|
2024-04-28 05:50:23 -07:00
|
|
|
<MyGroupsPanel />
|
2023-03-08 10:22:10 -08:00
|
|
|
|
2023-03-21 14:34:15 -07:00
|
|
|
<LinkFooter />
|
2023-02-05 14:14:21 -08:00
|
|
|
</Layout.Aside>
|
|
|
|
</>
|
|
|
|
);
|
2022-12-15 14:51:30 -08:00
|
|
|
|
2024-08-24 06:01:17 -07:00
|
|
|
export { GroupsLayout as default };
|