import React from 'react';
import { block } from 'bem-cn';

import './index.css';

const b = block('service-details');

const ServiceDetails = ({ children }) => <div className={b()}>{children}</div>;

ServiceDetails.Item = ({ title, children }) => (
    <div className={b('item')}>
        {title && <div className={b('title')}>{title}</div>}
        {children}
    </div>
);

export default ServiceDetails;
