2024-09-02 15:44:49 +00:00
|
|
|
import { Layout, LayoutContent, LayoutHeader, ProtectedRoute } from "@/components";
|
2024-10-01 10:21:08 +00:00
|
|
|
import { PropsWithChildren } from "react";
|
2024-06-29 19:39:25 +00:00
|
|
|
import { QuotesProvider } from "./QuotesContext";
|
|
|
|
|
|
2024-10-01 10:21:08 +00:00
|
|
|
export const QuotesLayout = ({ children }: PropsWithChildren) => {
|
2024-09-02 15:44:49 +00:00
|
|
|
return (
|
|
|
|
|
<ProtectedRoute>
|
|
|
|
|
<QuotesProvider>
|
2024-10-01 10:21:08 +00:00
|
|
|
<Layout className='quotes-layout'>
|
2024-09-02 15:44:49 +00:00
|
|
|
<LayoutHeader />
|
2024-10-01 10:21:08 +00:00
|
|
|
<LayoutContent>{children}</LayoutContent>
|
2024-09-02 15:44:49 +00:00
|
|
|
</Layout>
|
|
|
|
|
</QuotesProvider>
|
|
|
|
|
</ProtectedRoute>
|
|
|
|
|
);
|
2024-06-29 19:39:25 +00:00
|
|
|
};
|