({ appearance, arrow = 'none', children, className, ...props }: ButtonProps)
| 5 | import { motion } from 'framer-motion'; |
| 6 | |
| 7 | export const Button = ({ appearance, arrow = 'none', children, className, ...props }: ButtonProps): JSX.Element => { |
| 8 | return ( |
| 9 | <motion.button |
| 10 | whileHover={{ scale: 1.05 }} |
| 11 | className={cn(styles.button, className, { |
| 12 | [styles.primary]: appearance == 'primary', |
| 13 | [styles.ghost]: appearance == 'ghost', |
| 14 | })} |
| 15 | {...props} |
| 16 | > |
| 17 | {children} |
| 18 | {arrow != 'none' && <span className={cn(styles.arrow, { |
| 19 | [styles.down]: arrow == 'down' |
| 20 | })}> |
| 21 | <ArrowIcon /> |
| 22 | </span>} |
| 23 | </motion.button> |
| 24 | ); |
| 25 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected