Update embed.tsx

This commit is contained in:
Nate Kelley 2025-09-26 13:26:00 -06:00
parent a0e67025d3
commit b64d2ef14a
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import type { AssetType } from '@buster/server-shared/assets'; import type { AssetType } from '@buster/server-shared/assets';
import { createFileRoute, Outlet, type RouteContext } from '@tanstack/react-router'; import { createFileRoute, Outlet, type RouteContext } from '@tanstack/react-router';
import { prefetchGetMyUserInfo } from '@/api/buster_rest/users'; import { prefetchGetMyUserInfo } from '@/api/buster_rest/users';
import { Text } from '@/components/ui/typography';
import { getSupabaseSession } from '@/integrations/supabase/getSupabaseUserClient'; import { getSupabaseSession } from '@/integrations/supabase/getSupabaseUserClient';
import { signInWithAnonymousUser } from '@/integrations/supabase/signIn'; import { signInWithAnonymousUser } from '@/integrations/supabase/signIn';
import { AppAssetCheckLayout } from '@/layouts/AppAssetCheckLayout'; import { AppAssetCheckLayout } from '@/layouts/AppAssetCheckLayout';
@ -35,6 +36,16 @@ function RouteComponent() {
); );
} }
if (assetType === 'chat') {
return (
<div className="flex h-full w-full items-center justify-center">
<Text className="text-lg">
Sharing a chat is not supported yet... But it is on our roadmap!
</Text>
</div>
);
}
return ( return (
<main className="h-full w-full bg-page-background overflow-y-auto"> <main className="h-full w-full bg-page-background overflow-y-auto">
<AppAssetCheckLayout assetType={assetType}> <AppAssetCheckLayout assetType={assetType}>