-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteste.tsx
43 lines (40 loc) · 1.22 KB
/
teste.tsx
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { useState } from 'react'
import React from 'react'
import './rightSide.css'
type rightSideProps = {
resultadoIMC: number;
}
function RightSide({resultadoIMC}: rightSideProps) {
return (
<div className='main'>
{
resultadoIMC <= 18.5 ? (
<div className='magreza'>
<div className='magrezaBlock'>
<img src="../../public/img/imagens/down.png" alt="" className='tumbsM' />
<h1>Magreza</h1>
<span>IMC está entre 0 e 18.5</span>
</div>
</div>
) : resultadoIMC <= 24.9 ? (
<div className='sobrepeso'>
<div className='normalBlock'>
<img src="../../public/img/imagens/up.png" alt="" className='tumbsN' />
<h1>Normal</h1>
<span>IMC está entre 18.5 e 24.9</span>
</div>
</div>
) : (
<div className='obesidadeBlock'>
<div className='obesidadeBlock'>
<img src="../../public/img/imagens/down.png" alt="" className='tumbsO' />
<h1>Obesidade</h1>
<span>IMC está entre 30 e 99</span>
</div>
</div>
)
}
</div>
)
}
export default RightSide