import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import PersonViewSummary from "../PersonViewSummary";
import { dummyAbout, dummyEduPayload, dummyExpPayload } from "../../../utils";
const PersonViewBody = ({ personViewActiveTab = "Experience", personViewSummaryPayload = {
    about: dummyAbout,
    experience: dummyExpPayload,
    education: dummyEduPayload,
    totalExperience: "",
}, onCompanyNameClick, industries = [], isIndustryLoading = false, filterIndustries = [], filterSkills = [], filterProducts = [], isExpIndustriesLoading = false, scrollToEducation = false, dataCy, productsObject, }) => {
    const filteredExperience = personViewSummaryPayload.experience;
    const filteredEducation = personViewSummaryPayload.education;
    switch (personViewActiveTab) {
        case "Experience":
            return (_jsx(PersonViewSummary, { about: personViewSummaryPayload.about, experience: filteredExperience, education: filteredEducation, onCompanyNameClick: onCompanyNameClick ? onCompanyNameClick : () => { }, totalExperience: personViewSummaryPayload.totalExperience, industries: industries, isIndustryLoading: isIndustryLoading, filterIndustries: filterIndustries, filterSkills: filterSkills, filterProducts: filterProducts, isExpIndustriesLoading: isExpIndustriesLoading, scrollToEducation: scrollToEducation, dataCy: dataCy, productsObject: productsObject }));
        default:
            return _jsx(_Fragment, {});
    }
};
export default PersonViewBody;
