You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
916 B
29 lines
916 B
import React from 'react'
|
|
import Build from './build'
|
|
import Conserve from './conserve'
|
|
import Guanli from './guanli'
|
|
import Leadership from './leadership'
|
|
import Operation from './operation'
|
|
const Footer = ({ tabKey, dispatch }) => {
|
|
return (
|
|
<>
|
|
{
|
|
(() => {
|
|
switch (tabKey) {
|
|
case 'build':
|
|
return <Build />
|
|
case 'conserve':
|
|
return <Conserve dispatch={dispatch} />
|
|
case "leadership":
|
|
return <Leadership dispatch={dispatch} />
|
|
case "guanli":
|
|
return <Guanli />
|
|
case "operation":
|
|
return <Operation />
|
|
}
|
|
})()
|
|
}
|
|
</>
|
|
)
|
|
}
|
|
export default Footer
|
|
|