Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3520 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3481 stevensc 1
import React from 'react'
2
 
3
import Widget from '@app/components/UI/Widget'
4
import { CapsuleSuccessIcon } from '@app/components/UI/Icons'
5
import Button from '@app/components/UI/buttons/Buttons'
6
 
7
function CapsuleSuccessFeedback({ onConfirm, text }) {
8
  return (
9
    <Widget>
10
      <Widget.Body
11
        styles={{
12
          display: 'flex',
13
          flexDirection: 'column',
14
          alignItems: 'center',
15
          justifyContent: 'center',
16
          textAlign: 'center',
17
          gap: '1rem',
18
          '& h3': {
19
            maxWidth: '50ch'
20
          }
21
        }}
22
      >
23
        <h3>{text}</h3>
24
        <CapsuleSuccessIcon />
25
        <Button color='primary' onClick={onConfirm}>
26
          Salir
27
        </Button>
28
      </Widget.Body>
29
    </Widget>
30
  )
31
}
32
 
33
export default CapsuleSuccessFeedback