Skip to content

Commit

Permalink
fix section
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jun 27, 2024
1 parent 580c489 commit d540961
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/components/page/Section.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
import { Container, type ContainerProps } from "@mui/material"
import {
Box,
Container,
type BoxProps,
type ContainerProps,
} from "@mui/material"
import type { FC } from "react"

export interface SectionProps extends ContainerProps {}
export interface SectionProps extends ContainerProps {
boxProps?: Omit<BoxProps, "children">
}

const Section: FC<SectionProps> = containerProps => {
return <Container {...containerProps} />
const Section: FC<SectionProps> = ({ boxProps, ...containerProps }) => {
return (
<Box {...boxProps}>
<Container {...containerProps} />
</Box>
)
}

export default Section

0 comments on commit d540961

Please sign in to comment.