import React , { FC , useEffect } from "react" ; import "../../static/styles/all.scss" ; import generateAscii from "../Helpers/AsciiHelper" ; import Footer from "./Footer/Footer" ; import Header from "./header" ; type Props = { children : JSX . Element | JSX . Element [ ] ; } ; const Layout = ( { children } ) => { useEffect ( ( ) => { generateAscii ( ) ; } , [ ] ) ; return ( < > < Header /> < main > { children } < /main> < footer > < Footer /> < /footer> < />); } ; export default Layout ;