First commit
This commit is contained in:
18
src/components/Container.tsx
Normal file
18
src/components/Container.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
|
||||
interface ContainerProps {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function Container(props: Readonly<ContainerProps>) {
|
||||
return (
|
||||
<div
|
||||
className={`container p-8 mx-auto xl:px-0 ${
|
||||
props.className ? props.className : ""
|
||||
}`}>
|
||||
{props.children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user