mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 07:56:59 +00:00
26 lines
534 B
TypeScript
26 lines
534 B
TypeScript
import React, { FC, useEffect } from 'react'
|
|
import Search from '@components/search'
|
|
import { ModuleWithInit } from '@agility/nextjs'
|
|
import { useRouter } from 'next/router'
|
|
|
|
interface ICustomData {
|
|
categories: any
|
|
brands: any
|
|
}
|
|
|
|
interface IModule {
|
|
}
|
|
|
|
|
|
const ProductSearch: ModuleWithInit<IModule, ICustomData> = ({ customData }) => {
|
|
|
|
const categories:[any] = customData.categories
|
|
const brands:[any] = customData.brands
|
|
|
|
return <Search brands={brands} categories={categories} pages={[]} />
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ProductSearch |