Add dedicated bot, workspace and user settings pages
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import type { PagePropsType } from "@/src/types";
|
||||
import type { BunextPageModuleMetaFn } from "@moduletrace/bunext/types";
|
||||
import type { BunextPageModuleMeta } from "@moduletrace/bunext/types";
|
||||
import { SiteData } from "@/src/data/site-data";
|
||||
import WorkspaceOverview from "./(sections)/workspace-overview";
|
||||
|
||||
/**
|
||||
* Never rendered: `index.server.ts` always redirects. Workspace settings
|
||||
* live at `/admin/settings/workspaces/<id>`.
|
||||
*/
|
||||
export default function WorkspacePage() {
|
||||
return <WorkspaceOverview />;
|
||||
return null;
|
||||
}
|
||||
|
||||
export const meta: BunextPageModuleMetaFn = async (params) => {
|
||||
const workspace = (params.serverRes?.props as PagePropsType | undefined)?.workspace;
|
||||
|
||||
return {
|
||||
title: `${workspace?.name || "Workspace"} | ${SiteData["SiteName"]}`,
|
||||
description: workspace?.description || `A workspace.`,
|
||||
};
|
||||
export const meta: BunextPageModuleMeta = {
|
||||
title: `Workspaces | ${SiteData["SiteName"]}`,
|
||||
description: `Your workspaces.`,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user