You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
455 B
21 lines
455 B
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: React.ReactNode,
|
|
};
|
|
|
|
export default Container;
|
|
|