import React from 'react';
import PropTypes from 'prop-types';

const Container = ({id, title, children}) => {
    return(
        <div className={'container_main'} id={id}>
            <p className={'container_title'}> {title} </p>
            <>{children}</>
        </div>
    )
}

type Props = { children: React.ReactNode };

type Props = {
  id: PropTypes.number,
  title: PropTypes.string,
  children: PropTypes.element,
};

export default Container;
