"use client"; import { MdChevronRight } from "react-icons/md"; import { Button } from "@/components/ui/button"; import { t } from "@/utils"; import CustomImage from "@/components/Common/CustomImage"; const ComponentOne = ({ categories, categoriesLoading, fetchMoreCategory, lastPage, currentPage, isLoadMoreCat, handleCategoryTabClick, }) => { return ( <>
{categoriesLoading ? (
) : ( categories?.map((category) => { return (
handleCategoryTabClick(category)} >
{category?.translated_name || category?.name}
{category?.subcategories?.length > 0 && ( )}
); }) )}
{lastPage > currentPage && (
)} ); }; export default ComponentOne; const Loader = () => { return (
); };