This commit is contained in:
hamid zarghami
2025-04-20 14:36:26 +03:30
parent 1bf0b56a63
commit 3aaea96c2a
3 changed files with 61 additions and 18 deletions
+18 -18
View File
@@ -7,6 +7,7 @@ import ContactUs from '../components/ContactUs'
import { useGetBlogSingle } from '../hooks/useBlogsData'
import { toJalaliDate } from '@/config/func'
import MostVisited from './MostVisited'
import { TelegramShareButton, WhatsappShareButton } from 'react-share'
type Props = {
id: string
@@ -65,24 +66,23 @@ const SingleBlogPage: FC<Props> = ({ id }) => {
<div className='mt-6 flex gap-4 border-y border-[#E5E5E5] py-4'>
<div className='text-sm'>اشتراک گذاری</div>
<Image
src='/images/instagram.svg'
alt='share'
width={20}
height={20}
/>
<Image
src='/images/instagram.svg'
alt='share'
width={20}
height={20}
/>
<Image
src='/images/instagram.svg'
alt='share'
width={20}
height={20}
/>
<WhatsappShareButton url={`${window.location.origin}/blogs/${id}`}>
<Image
src='/images/whatsapp.svg'
alt='share'
width={20}
height={20}
/>
</WhatsappShareButton>
<TelegramShareButton url={`${window.location.origin}/blogs/${id}`}>
<Image
src='/images/telegram.svg'
alt='share'
width={20}
height={20}
/>
</TelegramShareButton>
</div>
</div>