Add PageContainer
This commit is contained in:
16
app/src/components/PageContainer.tsx
Normal file
16
app/src/components/PageContainer.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { JSX, ReactNode } from "react";
|
||||
import { View } from "react-native";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
interface PageContainerProps {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function PageContainer({ children, className }: PageContainerProps): JSX.Element {
|
||||
return (
|
||||
<View className={twMerge("w-full self-center px-4 md:px-8 lg:max-w-[1320px] lg:px-12", className)}>
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user