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.
19 lines
402 B
19 lines
402 B
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
export const Container: React.FC<Props> = ({title, children}) => {
|
|
return(
|
|
<div className={'container_main'}>
|
|
<p className={'container_title'}> {title} </p>
|
|
<>{children}</>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
type Props = {
|
|
id: number,
|
|
title: string,
|
|
children: React.ReactNode,
|
|
};
|
|
|
|
export default Container;
|
|
|