diff --git a/packages/common/env/src/workspace.ts b/packages/common/env/src/workspace.ts
index 9f99f5c077..9381241e95 100644
--- a/packages/common/env/src/workspace.ts
+++ b/packages/common/env/src/workspace.ts
@@ -1,5 +1,3 @@
-import type { PropsWithChildren, ReactNode } from 'react';
-
export enum WorkspaceSubPath {
ALL = 'all',
Collection = 'collection',
@@ -8,18 +6,6 @@ export enum WorkspaceSubPath {
SHARED = 'shared',
}
-export enum ReleaseType {
- // if workspace is not released yet, we will not show it in the workspace list
- UNRELEASED = 'unreleased',
- STABLE = 'stable',
-}
-
-export enum LoadPriority {
- HIGH = 1,
- MEDIUM = 2,
- LOW = 3,
-}
-
export enum WorkspaceFlavour {
/**
* New AFFiNE Cloud Workspace using Nest.js Server.
@@ -27,41 +13,3 @@ export enum WorkspaceFlavour {
AFFINE_CLOUD = 'affine-cloud',
LOCAL = 'local',
}
-
-export const settingPanel = {
- General: 'general',
- Collaboration: 'collaboration',
- Publish: 'publish',
- Export: 'export',
- Sync: 'sync',
-} as const;
-export const settingPanelValues = Object.values(settingPanel);
-export type SettingPanel = (typeof settingPanel)[keyof typeof settingPanel];
-
-export type WorkspaceHeaderProps = {
- rightSlot?: ReactNode;
- currentEntry:
- | {
- subPath: WorkspaceSubPath;
- }
- | {
- pageId: string;
- };
-};
-
-interface FC
{
- (props: P): ReactNode;
-}
-
-export interface WorkspaceUISchema {
- Provider: FC;
- LoginCard?: FC