import { Flex } from "@chakra-ui/react" ; import React , { memo , ReactNode } from "react" ; import styles from "./InfoContainer.module.css" ; const InfoContainer = ( { main , sub } ) => { return ( < Flex className = { styles . container } > { main } { sub } < /Flex>); } ; export default memo ( InfoContainer ) ;