17 lines
494 B
TypeScript
17 lines
494 B
TypeScript
import { Layout, LayoutContent, LayoutHeader, ProtectedRoute } from "@/components";
|
|
import { PropsWithChildren } from "react";
|
|
import { QuotesProvider } from "./QuotesContext";
|
|
|
|
export const QuotesLayout = ({ children }: PropsWithChildren) => {
|
|
return (
|
|
<ProtectedRoute>
|
|
<QuotesProvider>
|
|
<Layout className='quotes-layout'>
|
|
<LayoutHeader />
|
|
<LayoutContent>{children}</LayoutContent>
|
|
</Layout>
|
|
</QuotesProvider>
|
|
</ProtectedRoute>
|
|
);
|
|
};
|