@krowdy-ui/views
Version:
React components that implement Google's Material Design.
60 lines (57 loc) • 2.24 kB
JavaScript
import React from 'react';
import PropTypes from 'prop-types';
import { Typography } from '@krowdy-ui/core';
import { Business as BusinessIcon } from '@material-ui/icons';
import { useStyles } from './styles';
var _ref2 = /*#__PURE__*/React.createElement(BusinessIcon, {
color: "disabled"
});
var CardExperiencie = function CardExperiencie(_ref) {
var area = _ref.area,
description = _ref.description,
companyName = _ref.companyName,
jobPosition = _ref.jobPosition,
endDate = _ref.endDate,
hierarchy = _ref.hierarchy,
location = _ref.location,
startDate = _ref.startDate,
workHere = _ref.workHere;
var classes = useStyles();
return /*#__PURE__*/React.createElement("div", {
className: classes.root
}, /*#__PURE__*/React.createElement(Typography, {
variant: "h5"
}, jobPosition), /*#__PURE__*/React.createElement("div", {
className: classes.companyContent
}, /*#__PURE__*/React.createElement("div", {
className: classes.companyImageContent
}, _ref2), /*#__PURE__*/React.createElement(Typography, {
variant: "h6"
}, companyName)), startDate || workHere || endDate ? /*#__PURE__*/React.createElement(Typography, {
variant: "body2"
}, startDate, " - ", workHere ? 'Actual' : endDate) : null, hierarchy ? /*#__PURE__*/React.createElement(Typography, {
color: "info",
variant: "body1"
}, "Jerarqu\xEDa: ", hierarchy) : null, area ? /*#__PURE__*/React.createElement(Typography, {
color: "info",
variant: "body1"
}, "\xC1rea: ", area) : null, location ? /*#__PURE__*/React.createElement(Typography, {
color: "info",
variant: "body1"
}, "Ubicaci\xF3n: ", location) : null, description ? /*#__PURE__*/React.createElement(Typography, {
variant: "body2"
}, description) : null);
};
process.env.NODE_ENV !== "production" ? CardExperiencie.propTypes = {
area: PropTypes.string,
companyName: PropTypes.string,
description: PropTypes.string,
endDate: PropTypes.string,
hierarchy: PropTypes.string,
institutionName: PropTypes.string,
jobPosition: PropTypes.string,
location: PropTypes.string,
startDate: PropTypes.string,
workHere: PropTypes.bool
} : void 0;
export default React.memo(CardExperiencie);