mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-25 11:59:11 +00:00
17 lines
503 B
TypeScript
17 lines
503 B
TypeScript
import { Redirect } from '@reach/router';
|
|
import { LandingTemplate } from '@roleypoly/design-system/templates/landing';
|
|
import * as React from 'react';
|
|
import { useSessionContext } from '../session-context/SessionContext';
|
|
|
|
const Landing = () => {
|
|
const { isAuthenticated } = useSessionContext();
|
|
|
|
if (isAuthenticated) {
|
|
// return <Redirect to="/servers" />;
|
|
return <Redirect to="/x/dev-tools/session-debug" />;
|
|
}
|
|
|
|
return <LandingTemplate />;
|
|
};
|
|
|
|
export default Landing;
|