Files
manage/src/pages/company/service/itemsManange/sections/index.jsx
‘Liammcl’ 780e7519c1 专案完成
2025-01-04 20:09:06 +08:00

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)}</>;
}