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

36 lines
873 B
React
Raw Permalink Normal View History

2020-08-03 12:04:07 +02:00
import { useState } from 'react'
import { API_URL } from '../../utils/api'
2020-08-03 12:04:07 +02:00
import HeadTag from '../HeadTag'
import FunctionTabsTop from './FunctionTabsTop'
import FunctionComponentTop from './FunctionComponentTop'
2020-08-03 14:14:45 +02:00
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 (
<>
2020-08-03 14:14:45 +02:00
<HeadTag
title={props.title}
description={props.description}
image={API_URL + props.image}
/>
2020-08-03 12:04:07 +02:00
<div className='container-fluid'>
2020-08-03 14:14:45 +02:00
<FunctionTabsTop
slideIndex={slideIndex}
setSlideIndex={setSlideIndex}
tabNames={props.tabNames}
/>
2020-08-03 12:04:07 +02:00
<FunctionComponentTop {...props} />
2020-08-03 14:14:45 +02:00
<props.FunctionTabManager
{...props}
slideIndex={slideIndex}
setSlideIndex={setSlideIndex}
/>
2020-08-03 12:04:07 +02:00
</div>
</>
)
}
2020-08-03 12:04:07 +02:00
export default FunctionPage