Introduce mock cloud components for easier maintainability (#49)

This commit is contained in:
Neil Dwyer
2024-05-06 13:22:37 -07:00
committed by GitHub
parent 95387d73bc
commit 060d402836
5 changed files with 93 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
export const CloudConnect = ({ accentColor }: { accentColor: string }) => {
return null;
};
export const CLOUD_ENABLED = false;

1
src/cloud/README.md Normal file
View File

@@ -0,0 +1 @@
Files in this `cloud/` directory can be ignored. They are mocks which we override in our private, hosted version of the agents-playground that supports LiveKit Cloud authentication.

3
src/cloud/useCloud.tsx Normal file
View File

@@ -0,0 +1,3 @@
export function CloudProvider({ children }: { children: React.ReactNode }) {
return <>{children}</>;
}