import React from 'react' import Link from 'next/link' import * as Icon from 'react-feather' import { useSelector } from 'react-redux' import AddToCartBtn from '@/components/others/Shop/AddToCartBtn' import Select from 'react-select'; import Router from 'next/router' //addon library import { resetIdCounter, Tab, Tabs, TabList, TabPanel } from 'react-tabs'; resetIdCounter(); //yarn library import NumberFormat from 'react-number-format'; const ProductCard = function ({ category,page,selected,products, ...props }) { const handleName = values => { Router.push({ pathname: '/yamaha/Product/Sparepart', query: (values && values.length != 0) ? { filter: values["name"] } : {}, }) } category = category.map((i)=>i.replace(' ','_')); const pagination = (type,pages)=>{ console.log(type,selected); var paging = []; var current = (selected==type)?page:1; for(var i=1;i<=pages;i++){ paging.push(
  • {i}
  • ); } return (
    ); }; const productGrid = function(product){ if(product){ return product.map((data) => { return (

    {data.name}


    Detail Product
    ); }); } else return(
    Belum ada produk untuk saat ini. Tunggu berita selanjutnya dari kami ya!
    ); } return (
    {/*