mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 01:32:02 +10:00
28 lines
626 B
JavaScript
28 lines
626 B
JavaScript
import { get } from "lodash";
|
|
import React from "react";
|
|
import Heading from "../../shared/Heading";
|
|
import List from "../lists/List";
|
|
import TripleFieldListItem from "../lists/triple/TripleFieldListItem";
|
|
|
|
const Education = ({ id, name, event, state }) => {
|
|
const path = `${id}.items`;
|
|
const items = get(state, path, []);
|
|
|
|
return (
|
|
<section>
|
|
<Heading>{name}</Heading>
|
|
|
|
<List
|
|
path={path}
|
|
items={items}
|
|
event={event}
|
|
titlePath="institution"
|
|
textPath="field"
|
|
listItemComponent={TripleFieldListItem}
|
|
/>
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export default Education;
|