2019-11-05 15:13:10 -05:00
|
|
|
import React from 'react';
|
2019-08-14 14:33:26 -04:00
|
|
|
|
2019-10-24 07:13:07 -04:00
|
|
|
interface ContainerHeaderProps {
|
|
|
|
cat?: string;
|
|
|
|
backLink: string;
|
|
|
|
title: string;
|
|
|
|
}
|
2019-08-14 14:33:26 -04:00
|
|
|
|
2019-10-24 07:13:07 -04:00
|
|
|
const ContainerHeader: React.FunctionComponent<ContainerHeaderProps> = (props) => (
|
|
|
|
<header className={`section-header view ${props.cat ? props.cat : ''} ${props.cat ? `background-${props.cat}` : ''}`}>
|
2019-08-14 14:33:26 -04:00
|
|
|
<h2 className="h2">{props.title}</h2>
|
|
|
|
<nav className="icon-buttons">
|
2019-10-24 07:13:07 -04:00
|
|
|
{props.children}
|
2019-08-14 14:33:26 -04:00
|
|
|
</nav>
|
|
|
|
</header>
|
2019-11-07 03:13:30 -05:00
|
|
|
);
|
2019-08-14 14:33:26 -04:00
|
|
|
|
|
|
|
export default ContainerHeader;
|