mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
24 lines
588 B
TypeScript
24 lines
588 B
TypeScript
import { FC } from 'react';
|
|
|
|
import { Paper, Divider } from '@mui/material';
|
|
|
|
import { RequiredChildrenProps } from '../utils';
|
|
|
|
interface SectionContentProps extends RequiredChildrenProps {
|
|
title: string;
|
|
titleGutter?: boolean;
|
|
id?: string;
|
|
}
|
|
|
|
const SectionContent: FC<SectionContentProps> = (props) => {
|
|
const { children, title, id } = props;
|
|
return (
|
|
<Paper id={id} sx={{ p: 2, m: 2 }}>
|
|
<Divider sx={{ pb: 2, borderColor: 'primary.main', fontSize: 20, color: 'primary.main' }}>{title}</Divider>
|
|
{children}
|
|
</Paper>
|
|
);
|
|
};
|
|
|
|
export default SectionContent;
|