17 lines
459 B
JavaScript
17 lines
459 B
JavaScript
import React from "react";
|
|
import QuataSections from "./quotation";
|
|
import TaskSections from "./task";
|
|
import Project from './project'
|
|
export default function SectionComponent({ activeType }) {
|
|
const renderFn = (type) => {
|
|
switch (type) {
|
|
case "quotation":
|
|
return <QuataSections />;
|
|
case "task":
|
|
return <TaskSections />;
|
|
default:
|
|
return <Project></Project>;
|
|
}
|
|
};
|
|
return <>{renderFn(activeType)}</>;
|
|
} |