mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
26 lines
408 B
TypeScript
26 lines
408 B
TypeScript
import { Product } from '@commerce/types'
|
|
|
|
import { CSVConfig } from '../index'
|
|
|
|
import mock from './mock'
|
|
|
|
interface GetProduct {
|
|
product: Product | null
|
|
}
|
|
|
|
interface Parameters {
|
|
variables: {
|
|
slug?: string
|
|
}
|
|
config: CSVConfig
|
|
preview?: boolean
|
|
}
|
|
|
|
const getProduct = async (_parameters: Parameters): Promise<GetProduct> => {
|
|
return {
|
|
product: mock.full,
|
|
}
|
|
}
|
|
|
|
export default getProduct
|