mirror of
https://github.com/hanzo-apps/tabs.git
synced 2026-10-30 15:04:29 +00:00
Links from other products open tabs.hanzo.ai. A reader who already holds a session came for the workspace, so the front page forwards them to /app/ and draws nothing for them; a stranger still sees the exported page.
18 lines
466 B
TypeScript
18 lines
466 B
TypeScript
'use client';
|
|
|
|
import { useEffect } from 'react';
|
|
|
|
import { session } from '@/lib/iam';
|
|
|
|
/**
|
|
* A reader who already holds a session has no use for the front page: they came
|
|
* from a link to Tabs, and Tabs is the workspace. Sends them there, and draws
|
|
* nothing — a stranger sees the page exactly as it was exported.
|
|
*/
|
|
export function Resume() {
|
|
useEffect(() => {
|
|
if (session().authenticated) window.location.replace('/app/');
|
|
}, []);
|
|
return null;
|
|
}
|