FooterSection.jsx 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import React from 'react';
  2. import FooterItem from "./FooterItem";
  3. const FooterSection = ({title}) => {
  4. const renderLis = () => {
  5. if (title === 'Destinations') {
  6. return (
  7. <>
  8. <FooterItem text='Africa'/>
  9. <FooterItem text='Antarctica'/>
  10. <FooterItem text='Asia'/>
  11. <FooterItem text='Europe'/>
  12. <FooterItem text='America'/>
  13. </>
  14. )
  15. } else if (title === 'Shop') {
  16. return (
  17. <>
  18. <FooterItem text='Destination Guides'/>
  19. <FooterItem text='Pictorial & Gifts'/>
  20. <FooterItem text='Special Offers'/>
  21. <FooterItem text='Delivery Times'/>
  22. <FooterItem text='FAQs'/>
  23. </>
  24. )
  25. } else if (title === 'Interests') {
  26. return (
  27. <>
  28. <FooterItem text='Adventure Travel'/>
  29. <FooterItem text='Art And Culture'/>
  30. <FooterItem text='Wildlife And Nature'/>
  31. <FooterItem text='Family Holidays'/>
  32. <FooterItem text='Food And Drink'/>
  33. </>
  34. )
  35. }
  36. }
  37. let list = renderLis()
  38. return (
  39. <div className="footer-section">
  40. <p className="footer-title">
  41. {title}
  42. </p>
  43. <ul className="footer-list">
  44. {list}
  45. </ul>
  46. </div>
  47. );
  48. };
  49. export default FooterSection;