Main.tsx 302 B

1234567891011121314
  1. import './Main.scss'
  2. import type { PropsWithChildren } from 'react'
  3. export interface MainProps {
  4. className?: string
  5. }
  6. export default function Main({ children, className = '' }: PropsWithChildren<MainProps>) {
  7. return (
  8. <main className={`main ${className}`}>
  9. {children}
  10. </main>
  11. )
  12. }