This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/website/components/FunctionPage/FunctionPage.jsx

24 lines
779 B
React
Raw Normal View History

2020-08-03 12:04:07 +02:00
import { useState } from 'react'
import { API_URL } from '../../utils/config/config'
import HeadTag from '../HeadTag'
import FunctionTabsTop from './FunctionTabsTop'
import FunctionComponentTop from './FunctionComponentTop'
const FunctionPage = (props) => {
2020-08-03 12:04:07 +02:00
const [slideIndex, setSlideIndex] = useState(0)
2020-08-03 12:04:07 +02:00
return (
<>
<HeadTag title={props.title} description={props.description} image={API_URL + props.image} />
2020-08-03 12:04:07 +02:00
<div className='container-fluid'>
<FunctionTabsTop slideIndex={slideIndex} setSlideIndex={setSlideIndex} tabNames={props.tabNames} />
<FunctionComponentTop {...props} />
<props.FunctionTabManager {...props} slideIndex={slideIndex} setSlideIndex={setSlideIndex} />
</div>
</>
)
}
2020-08-03 12:04:07 +02:00
export default FunctionPage