fix: resolve import errors and add missing api hooks

- Create constants.ts for RECORD_A_MEETING_URL
- Add api-types.ts for backward compatible type exports
- Update all imports from deleted api folder to new locations
- Add missing React Query hooks for rooms and zulip operations
- Create useApi compatibility layer for unmigrated components
This commit is contained in:
2025-08-27 23:55:59 -06:00
parent e8afe82acd
commit 68c161ee7e
33 changed files with 167 additions and 30 deletions

13
www/app/lib/useApi.ts Normal file
View File

@@ -0,0 +1,13 @@
// Compatibility layer for direct API client usage
// Prefer using React Query hooks from api-hooks.ts instead
import { client } from "./apiClient";
// Returns the configured client for direct API calls
// This is a minimal compatibility layer for components that haven't been fully migrated
export default function useApi() {
return client;
}
// Export the client directly for non-hook contexts
export { client };