Files
danak-website/src/app/home/DanakSuggestedService.tsx
T
hamid zarghami 74c47893dd landing api
2025-04-14 15:31:57 +03:30

30 lines
884 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use client'
import { FC } from 'react'
import ServiceItem from '@/components/ServiceItem'
import { useGetLanding } from './hooks/useHomeData'
const DanakSuggestedService: FC = () => {
const { data } = useGetLanding()
return (
<div className='max-w-maxWidth mx-auto xl:mt-20 mt-12'>
<h2 className='xl:text-2xl text-sm font-bold text-center xl:text-right'>
سرویس های پیشنهادی داناک
</h2>
<div className='xl:mt-14 mt-10 flex xl:flex-row flex-col gap-8'>
{
data?.data?.danakSuggestServices?.map((item) => {
return (
<ServiceItem key={item.id} item={item} />
)
})
}
</div>
</div>
)
}
export default DanakSuggestedService