(props)
| 1 | import { Link } from 'react-router-dom'; |
| 2 | |
| 3 | function Button(props) { |
| 4 | return ( |
| 5 | <Link |
| 6 | to={props.to} |
| 7 | className='w-72 h-auto m-4 shadow-lg hover:shadow-xl group |
| 8 | rounded-lg focus:outline-none focus:ring sm:w-96' |
| 9 | > |
| 10 | <img |
| 11 | src={props.src} |
| 12 | alt={props.alt} |
| 13 | className={'w-full h-72 rounded-t-lg p-6 ' + props.color} |
| 14 | /> |
| 15 | <div |
| 16 | className='bg-gray-200 group-hover:bg-gray-100 rounded-b-lg |
| 17 | text-gray-800 text-center p-4 text-base md:text-lg w-full bg-' |
| 18 | > |
| 19 | {props.children} |
| 20 | </div> |
| 21 | </Link> |
| 22 | ); |
| 23 | } |
| 24 | |
| 25 | export default Button; |
nothing calls this directly
no outgoing calls
no test coverage detected