This is just a technology testing project based on Create React App and TailwindCSS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
331B

  1. import React from 'react'
  2. function Link(props) {
  3. const { action, children, className, ...rest } = props
  4. const classNames = ['text-primary-dark cursor-pointer hover:underline', className].join(' ');
  5. return (
  6. <span onClick={action} className={classNames} {...rest}>{children}</span>
  7. )
  8. }
  9. export default Link