mirror of https://github.com/buster-so/buster.git
Update embed.tsx
This commit is contained in:
parent
a0e67025d3
commit
b64d2ef14a
|
@ -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}>
|
||||||
|
|
Loading…
Reference in New Issue