import React from 'react';
import './styles.scss';

const propTypes = {};

export default function SubTopBar( { heading, children } ) {
	return (
		<React.Fragment>
			<div className="quizpress-sub-top-header">
				<div className="quizpress-sub-top-header__title">
					{ heading }
				</div>
				<div className="quizpress-sub-top-header__content">
					{ children }
				</div>
			</div>
		</React.Fragment>
	);
}

SubTopBar.propTypes = propTypes;
