tailwind-nextjs-blog/components/SectionContainer.tsx

14 lines
264 B
TypeScript
Raw Permalink Normal View History

2022-10-17 23:37:01 +08:00
import { ReactNode } from 'react';
interface Props {
2022-10-17 23:37:01 +08:00
children: ReactNode;
}
export default function SectionContainer({ children }: Props) {
2022-10-17 23:37:01 +08:00
return (
<div className="mx-auto max-w-3xl px-4 sm:px-6 xl:max-w-5xl xl:px-0">
{children}
</div>
);
}