feat(WEB-154): my profile view
This commit is contained in:
17
components/MaxWidth/index.tsx
Normal file
17
components/MaxWidth/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { cva } from "class-variance-authority"
|
||||
|
||||
import styles from "./maxWidth.module.css"
|
||||
|
||||
import type { MaxWidthProps } from "@/types/components/max-width"
|
||||
|
||||
const maxWidthVariants = cva(styles.container)
|
||||
|
||||
export default function MaxWidth({
|
||||
className,
|
||||
tag = "section",
|
||||
...props
|
||||
}: MaxWidthProps
|
||||
) {
|
||||
const Cmp = tag
|
||||
return <Cmp className={maxWidthVariants({ className })} {...props} />
|
||||
}
|
||||
Reference in New Issue
Block a user