File size: 658 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import { HStack, Image, Text } from '@chakra-ui/react';
import React from 'react';

const SignUpButton = ({ bg, logo, type, text, hoverBg, color, onClick }) => {
   return (
      <HStack
         bg={bg}
         color={color || 'dark.color'}
         p='.7rem'
         borderRadius='5px'
         w='100%'
         justify='center'
         align='center'
         cursor='pointer'
         _hover={{ bg: hoverBg }}
         height='48px'
         transition='.3s'
         onClick={onClick}
      >
         <Image src={logo} alt='icon' />
         <Text>
            {type} {text}
         </Text>
      </HStack>
   );
};

export default SignUpButton;