import { Icon } from '../_shared/Icon' import { t } from '../../utils/intl' import { createSocialShare, TWITTER, VK, FACEBOOK, TELEGRAM } from '@solid-primitives/share' import styles from '../_shared/Popup/Popup.module.scss' import type { PopupProps } from '../_shared/Popup' import { Popup } from '../_shared/Popup' type SharePopupProps = { title: string shareUrl?: string imageUrl: string description: string } & Omit export const SharePopup = (props: SharePopupProps) => { const [share] = createSocialShare(() => ({ title: props.title, url: props.shareUrl, description: props.description })) const copyLink = async () => { await navigator.clipboard.writeText(window.location.href) } return ( ) }