blob: 3f48c3e42f2fbf41eeb65dfb5b25eaaf6160d982 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { List, Edit } from '.'
import { useState } from 'react'
const Main = ({ session, setSession, showError }) => {
const [edit, setEdit] = useState(null)
return edit
? (
<Edit
edit={edit}
setEdit={setEdit}
session={session}
setSession={setSession}
showError={showError}
/>
) : (
<List
session={session}
setSession={setSession}
showError={showError}
setEdit={setEdit}
/>
)
}
export default Main
|