meshtastic/src/components/PageLayout.tsx

26 lines
428 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 {
2023-05-11 18:45:34 -07:00
title: string;
description: string;
children: React.ReactNode;
2022-04-02 06:17:50 -07:00
}
export const PageLayout = ({
2023-05-11 18:45:34 -07:00
title,
description,
children,
2022-04-02 06:17:50 -07:00
}: PageLayoutProps): JSX.Element => {
2023-05-11 18:45:34 -07:00
return (
<Layout title={title} description={description}>
{children}
</Layout>
);
2022-04-02 06:17:50 -07:00
};
export interface ColorModeProps {
2023-05-11 18:45:34 -07:00
children: React.ReactNode;
2022-04-02 06:17:50 -07:00
}