share
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user