mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
20 lines
445 B
TypeScript
20 lines
445 B
TypeScript
import { AnimatePresence } from 'framer-motion';
|
|
import { LookingGlass, Results } from '~/components';
|
|
import { useLGMethods } from '~/hooks';
|
|
import { Frame } from './frame';
|
|
|
|
export const Layout: React.FC = () => {
|
|
const { formReady } = useLGMethods();
|
|
return (
|
|
<Frame>
|
|
{formReady() ? (
|
|
<Results />
|
|
) : (
|
|
<AnimatePresence>
|
|
<LookingGlass />
|
|
</AnimatePresence>
|
|
)}
|
|
</Frame>
|
|
);
|
|
};
|