refactor: general refactor

make barrel files .ts instead of .tsx
move layouts to components directory
This commit is contained in:
zyachel
2023-10-29 00:11:28 +05:30
parent 40eb8a372b
commit 12eaa741ab
12 changed files with 8 additions and 9 deletions

View File

@ -0,0 +1,24 @@
import { ReactNode } from 'react';
import Footer from './Footer';
import Header from './Header';
type Props = {
full?: true;
children: ReactNode;
className: string;
originalPath?: string;
};
const Layout = ({ full, children, className, originalPath }: Props) => {
return (
<>
<Header full={full} originalPath={originalPath} />
<main id='main' className={`main ${className}`}>
{children}
</main>
<Footer />
</>
);
};
export default Layout;