import Link from "next/link"; import React from "react"; import Image from "next/image"; import {headers} from "next/headers"; import {redirect} from "next/navigation"; import {auth} from "@/lib/better-auth/auth"; const Layout = async ({ children }: { children : React.ReactNode }) => { const session = await auth.api.getSession({headers: await headers()}); if (session?.user) redirect('/') return (

OpenStock

{children}
“For me, OpenStock isn’t just another stock app. It’s about giving people clarity and control in the market, without barriers or subscriptions.”
- Ravi Pratap Singh (@ravixalgorithm)

Founder @opendevsociety

{[1,2,3,4,5].map((star) => ( star ))}
Dashboard Preview
) } export default Layout