(props)
| 1 | import { Link } from 'react-router-dom'; |
| 2 | |
| 3 | function Footer(props) { |
| 4 | const text = () => { |
| 5 | if (props.about) { |
| 6 | return ( |
| 7 | <a |
| 8 | href='https://github.com/Free-APIs/Free-APIs.github.io/' |
| 9 | target='_blank' |
| 10 | rel='noreferrer' |
| 11 | > |
| 12 | Design and development by Free-APIs. |
| 13 | </a> |
| 14 | ); |
| 15 | } else { |
| 16 | return <Link to='/about'>About this project</Link>; |
| 17 | } |
| 18 | }; |
| 19 | |
| 20 | return ( |
| 21 | <div |
| 22 | className='flex justify-center text-center items-center p-6 |
| 23 | bg-gradient-to-r from-gray-700 to-gray-900 via-gray-800' |
| 24 | > |
| 25 | <p |
| 26 | className='text-gray-300 hover:text-gray-50 cursor-pointer |
| 27 | text-sm' |
| 28 | > |
| 29 | {text()} |
| 30 | </p> |
| 31 | </div> |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | export default Footer; |
nothing calls this directly
no outgoing calls
no test coverage detected