Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 10457 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
15126 stevensc 1
import React, { useState } from 'react'
2
import ContentTitle from '../../../shared/ContentTitle'
3
import FormView from '../views/FormView'
4
import TableView from '../views/TableView'
10436 stevensc 5
 
6
const InterviewRoutes = ({ backendVars }) => {
7
 
15126 stevensc 8
	const { add_link } = backendVars
9
	const [actionLink, setAcctionLink] = useState(add_link)
10
	const [action, setAction] = useState('')
11
 
10452 stevensc 12
	return (
15126 stevensc 13
		<ContentTitle title="Entrevistas">
14
			{action ?
15
				<FormView
16
					{...backendVars}
17
					actionLink={actionLink}
18
					setActionLink={setAcctionLink}
19
					action={action}
20
					setAction={setAction}
21
				/>
22
				: <TableView
23
					{...backendVars}
24
					setActionLink={setAcctionLink}
25
					action={action}
26
					setAction={setAction}
27
				/>
28
			}
29
		</ContentTitle >
10452 stevensc 30
	)
10436 stevensc 31
}
32
export default InterviewRoutes