webapp/src/components/Article/SharePopup.tsx

48 lines
1.2 KiB
TypeScript
Raw Normal View History

2022-11-14 17:41:05 +00:00
import { Icon } from '../_shared/Icon'
2022-10-25 15:36:32 +00:00
import { t } from '../../utils/intl'
2022-11-14 10:02:08 +00:00
2022-11-20 21:25:59 +00:00
import styles from '../_shared/Popup/Popup.module.scss'
2022-11-14 10:02:08 +00:00
import type { PopupProps } from '../_shared/Popup'
import { Popup } from '../_shared/Popup'
2022-10-25 15:36:32 +00:00
type SharePopupProps = Omit<PopupProps, 'children'>
export const SharePopup = (props: SharePopupProps) => {
return (
2022-12-17 03:27:00 +00:00
<Popup {...props} variant="bordered">
2022-10-25 15:36:32 +00:00
<ul class="nodash">
<li>
<a href="#">
<Icon name="vk-white" class={styles.icon} />
VK
</a>
</li>
<li>
<a href="#">
<Icon name="facebook-white" class={styles.icon} />
Facebook
</a>
</li>
<li>
<a href="#">
<Icon name="twitter-white" class={styles.icon} />
Twitter
</a>
</li>
<li>
<a href="#">
<Icon name="telegram-white" class={styles.icon} />
Telegram
</a>
</li>
<li>
<a href="#">
<Icon name="link-white" class={styles.icon} />
{t('Copy link')}
</a>
</li>
</ul>
</Popup>
)
}