MCPcopy Create free account
hub / github.com/Free-APIs/Free-APIs.github.io / Footer

Function Footer

src/components/Footer/index.js:3–33  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

1import { Link } from 'react-router-dom';
2
3function 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
35export default Footer;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected