"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/* @flow */
const React = __importStar(require("react"));
{
    ProjectCardProps;
}
from;
'./types';
const classnames_1 = __importDefault(require("classnames"));
const prop_types_1 = __importDefault(require("prop-types"));
const withStyles_1 = __importDefault(require("components/hoc/withStyles"));
const ErrorBoundary_1 = __importDefault(require("components/hoc/ErrorBoundary"));
const styles_1 = __importDefault(require("./styles"));
class ProjectCard extends React.Component {
    render() {
        let { classes, title, companyName, projectStatus, 
        // invoiceStatus,
        // invoiceDate,
        onEditClick, } = this.props;
        return (React.createElement(ErrorBoundary_1.default, null,
            React.createElement("div", { className: classes.component, "data-test": `project-${title}` },
                React.createElement("div", { className: classes.wrapper },
                    React.createElement("div", { className: classes.titleWrapper },
                        React.createElement("div", { className: classes.title }, title),
                        React.createElement("i", { className: classnames_1.default('ion-edit', classes.editIcon), onClick: onEditClick })),
                    React.createElement("div", { className: classes.infoWrapper },
                        React.createElement("div", { className: classes.companyName }, companyName),
                        React.createElement("div", { className: classes.projectStatus }, projectStatus))))));
    }
}
ProjectCard.propTypes = {
    title: prop_types_1.default.string,
    titleColor: prop_types_1.default.oneOf(['darkBlue', 'green']),
    companyName: prop_types_1.default.string,
    projectStatus: prop_types_1.default.string,
    invoiceStatus: prop_types_1.default.string,
    invoiceStatusColor: prop_types_1.default.oneOf(['orange', 'green']),
    invoiceDate: prop_types_1.default.string,
    onEditClick: prop_types_1.default.func,
    classes: prop_types_1.default.object,
};
ProjectCard.defaultProps = {
    titleColor: 'darkBlue',
    invoiceStatusColor: 'green',
    onEditClick: () => { },
};
exports.default = withStyles_1.default(styles_1.default)(ProjectCard);
//# sourceMappingURL=index.js.map