17 lines
288 B
TypeScript
17 lines
288 B
TypeScript
import type { ReactElement } from "react";
|
|
import TopHeader from "~components/TopHeader";
|
|
|
|
interface Props {
|
|
children: ReactElement;
|
|
}
|
|
|
|
const Layout = ({ children }: Props) => {
|
|
return (
|
|
<>
|
|
<TopHeader />
|
|
<main>{children}</main>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default Layout;
|