import * as React from "react";
import { ContractList } from "./ContractList";
import { IBladeburner } from "../IBladeburner";

interface IProps {
    bladeburner: IBladeburner;
}

export function ContractPage(props: IProps): React.ReactElement {
    return (<>
        <p style={{display: 'block', margin: '4px', padding: '4px'}}>
            Complete contracts in order to increase your Bladeburner rank and earn money. 
            Failing a contract will cause you to lose HP, which can lead to hospitalization.
            <br />
            <br />
            You can unlock higher-level contracts by successfully completing them. 
            Higher-level contracts are more difficult, but grant more rank, experience, and money.
        </p>
        <ContractList bladeburner={props.bladeburner} />
    </>);
}