webapp/src/components/Feed/FeedArticlePopup.tsx

92 lines
2.1 KiB
TypeScript
Raw Normal View History

2023-02-06 21:35:08 +00:00
import styles from './FeedArticlePopup.module.scss'
import type { PopupProps } from '../_shared/Popup'
import { Popup } from '../_shared/Popup'
2023-02-17 09:21:02 +00:00
import { useLocalize } from '../../context/localize'
2023-02-06 21:35:08 +00:00
type FeedArticlePopupProps = {
title: string
shareUrl?: string
imageUrl: string
description: string
} & Omit<PopupProps, 'children'>
export const FeedArticlePopup = (props: FeedArticlePopupProps) => {
2023-02-17 09:21:02 +00:00
const { t } = useLocalize()
2023-02-06 21:35:08 +00:00
return (
<Popup {...props} variant="tiny" popupCssClass={styles.feedArticlePopup}>
<ul class="nodash">
<li>
2023-02-07 13:20:07 +00:00
<button
role="button"
onClick={() => {
alert('Share')
}}
>
{t('Share')}
2023-02-06 21:35:08 +00:00
</button>
</li>
<li>
2023-02-07 13:20:07 +00:00
<button
role="button"
onClick={() => {
alert('Help to edit')
}}
>
{t('Help to edit')}
2023-02-06 21:35:08 +00:00
</button>
</li>
<li>
2023-02-07 13:20:07 +00:00
<button
role="button"
onClick={() => {
alert('Invite experts')
}}
>
{t('Invite experts')}
2023-02-06 21:35:08 +00:00
</button>
</li>
<li>
2023-02-07 13:20:07 +00:00
<button
role="button"
onClick={() => {
alert('Subscribe to comments')
}}
>
{t('Subscribe to comments')}
2023-02-06 21:35:08 +00:00
</button>
</li>
<li>
2023-02-07 13:20:07 +00:00
<button
role="button"
onClick={() => {
alert('Add to bookmarks')
}}
>
{t('Add to bookmarks')}
2023-02-06 21:35:08 +00:00
</button>
</li>
<li>
2023-02-07 13:20:07 +00:00
<button
role="button"
onClick={() => {
alert('Report')
}}
>
{t('Report')}
2023-02-06 21:35:08 +00:00
</button>
</li>
<li>
2023-02-07 13:20:07 +00:00
<button
role="button"
onClick={() => {
alert('Get notifications')
}}
>
{t('Get notifications')}
2023-02-06 21:35:08 +00:00
</button>
</li>
</ul>
</Popup>
)
}