26 lines
634 B
TypeScript
26 lines
634 B
TypeScript
"use client"
|
|
|
|
import useSubscribeStore from "@/store/subscribe";
|
|
import Header from "./_components/header";
|
|
import {useEffect} from "react";
|
|
import {detectExtension} from "@/utils/extension/detect_extension";
|
|
|
|
interface Props {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export default function DashboardLayout({children}: Props) {
|
|
const {init} = useSubscribeStore();
|
|
useEffect(() => {
|
|
init();
|
|
detectExtension()
|
|
}, []);
|
|
|
|
return (
|
|
<div className="storeai-dashboard relative min-h-screen bg-background">
|
|
<Header/>
|
|
<div className="relative">{children}</div>
|
|
</div>
|
|
);
|
|
}
|