meshtastic/src/components/PageLayout.tsx

26 lines
443 B
TypeScript
Raw Normal View History

2023-01-19 04:41:44 -08:00
import React from "react";
2022-04-02 06:17:50 -07:00
2023-01-19 04:41:44 -08:00
import Layout from "@theme/Layout";
2022-04-02 06:17:50 -07:00
export interface PageLayoutProps {
title: string;
description: string;
children: React.ReactNode;
}
export const PageLayout = ({
title,
description,
2023-01-19 04:41:44 -08:00
children
2022-04-02 06:17:50 -07:00
}: PageLayoutProps): JSX.Element => {
return (
<Layout title={title} description={description}>
{children}
</Layout>
);
};
export interface ColorModeProps {
children: React.ReactNode;
}