Files
pawol.nu/components/jwenn-sesyon/index.js
T

41 lines
965 B
JavaScript
Raw Normal View History

2021-07-22 00:59:53 +02:00
import {useState} from 'react'
import {Box, Button, Typography} from '@material-ui/core'
import Image from 'next/image'
import sessionLogo from '../../public/session-logo-50.png'
2021-07-22 00:59:53 +02:00
import SesyonDialog from './sesyon-dialog'
export default function JwennSesyon() {
const [ouve, meteOuve] = useState(false)
const handleClickOuve = () => {
meteOuve(true)
}
const handleFemen = () => {
meteOuve(false)
}
return (
<>
<Button style={{marginTop: 10}} variant='outlined' color='primary' onClick={handleClickOuve}>
<Box paddingTop={1}>
<Image
src={sessionLogo}
2021-07-22 00:59:53 +02:00
width={50}
height={55}
placeholder='blur'
2021-07-22 00:59:53 +02:00
/>
<Typography style={{fontWeight: 'bold'}} variant='h6' component='h1'>
Session
</Typography>
</Box>
</Button>
{ouve && (
<SesyonDialog ouve={ouve} handleFemen={handleFemen} />
)}
</>
)
}