feat(frontend): add public landing page

This commit is contained in:
2026-04-30 17:06:25 +03:30
parent a5a7a01da0
commit bba1be1f71
7 changed files with 711 additions and 21 deletions

View File

@@ -15,13 +15,15 @@ interface WorkspaceContextType {
isLoading: boolean
}
const WorkspaceContext = createContext<WorkspaceContextType | undefined>(undefined)
export const useWorkspace = () => {
const context = useContext(WorkspaceContext)
if (!context) throw new Error("useWorkspace must be used within a WorkspaceProvider")
return context
}
const WorkspaceContext = createContext<WorkspaceContextType | undefined>(undefined)
export const useWorkspace = () => {
const context = useContext(WorkspaceContext)
if (!context) throw new Error("useWorkspace must be used within a WorkspaceProvider")
return context
}
export const useOptionalWorkspace = () => useContext(WorkspaceContext)
export const WorkspaceProvider = ({ children }: { children: ReactNode }) => {
const { t } = useTranslation()