refactor: general refactor
make barrel files .ts instead of .tsx move layouts to components directory
This commit is contained in:
24
src/components/layout/index.tsx
Normal file
24
src/components/layout/index.tsx
Normal 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;
|
Reference in New Issue
Block a user