import React from "react"; import "./CommitteeContainer.scss"; import { Occupation } from "../../models/Contacts"; import ContactCard from "../ContactCard/ContactCard"; export interface CommitteeContainerProps { name_fi: string; name_en: string; contacts: Occupation[]; } export interface CommitteeContainerState { } class CommitteeContainer extends React.Component { render() { const { name_fi, name_en, contacts } = this.props; return (
{name_fi}
{name_en}
{contacts.map(occupation => ( occupation.officials.map(official => ( )) ))}
); } } export default CommitteeContainer;