SortBar.tsx 540 B

123456789101112131415161718192021222324
  1. import s from './SortBar.module.css';
  2. const SortBar = ({ handleSort }: { handleSort: any }) => {
  3. return (
  4. <div className={s.sortBarWrapper} onClick={handleSort}>
  5. <button
  6. className={s.sortBarWrapper__btn}
  7. data-sort="Country"
  8. type="button"
  9. >
  10. Sort By Country Name
  11. </button>
  12. <button
  13. className={s.sortBarWrapper__btn}
  14. data-sort="TotalConfirmed"
  15. type="button"
  16. >
  17. Sort By TotalConfirmed
  18. </button>
  19. </div>
  20. );
  21. };
  22. export default SortBar;