import type { ComponentType } from 'react' import { WORKSPACES } from './_generated/workspace-map' export interface WorkspaceComponentProps { userId: string } export function getWorkspaceComponent( sector: string, slug: string ): ComponentType | null { return WORKSPACES[`${sector}/${slug}`] ?? null }