import React from 'react' import style from "./PromoSection.module.css" import PromoCard from './PromoCard' import { useQuery } from 'react-query' import { Skeleton } from '@chakra-ui/react' import { IPromotion } from '~/common/types/promotion' type Props = { productId: number } const PromoSection = ({ productId }: Props) => { const promotionsQuery = useQuery( `promotions-highlight:${productId}`, async () => await fetch(`/api/product-variant/${productId}/promotion/highlight`).then((res) => res.json()) as { data: IPromotion[] }, ) const promotions = promotionsQuery.data const handleSeeMore = () => { } return (