import React , { HTMLAttributes , ReactNode } from 'react' ; import { main } from './main.module.css' ; export interface MainProps extends HTMLAttributes < HTMLDivElement > { children : ReactNode ; } function Main ( props ) { return < main className = { main } { ... props } />; } export default Main ;