src/components/KillTeam2018/Phase.tsx
import React from 'react'
import { Col } from 'react-bootstrap'
interface Props {
name: string
note?: string
children: React.ReactNode
}
function Phase (props: Props): JSX.Element {
return (
<div style={{
pageBreakAfter: 'always'
}}
>
<h2 style={{
background: '#FF6F2D',
color: 'white',
padding: '10px',
width: '100%',
display: 'flex'
}}
>
<Col>
{props.name} Phase
</Col>
<Col style={{ flexGrow: 0, textAlign: 'right' }}>
{props.note !== null && (
<small>{props.note}</small>
)}
</Col>
</h2>
{props.children}
</div>
)
}
export default Phase