import { faChartPie as pieChartIcon, faQrcode as qrIcon, faMinusCircle as deleteIcon, faEdit as editIcon, } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { FC } from 'react'; import { DropdownItem } from 'reactstrap'; import { useToggle } from '../../utils/helpers/hooks'; import { ShortUrl, ShortUrlModalProps } from '../data'; import { SelectedServer } from '../../servers/data'; import { DropdownBtnMenu } from '../../utils/DropdownBtnMenu'; import ShortUrlDetailLink from './ShortUrlDetailLink'; export interface ShortUrlsRowMenuProps { selectedServer: SelectedServer; shortUrl: ShortUrl; } type ShortUrlModal = FC; const ShortUrlsRowMenu = ( DeleteShortUrlModal: ShortUrlModal, QrCodeModal: ShortUrlModal, ) => ({ shortUrl, selectedServer }: ShortUrlsRowMenuProps) => { const [ isOpen, toggle ] = useToggle(); const [ isQrModalOpen, toggleQrCode ] = useToggle(); const [ isDeleteModalOpen, toggleDelete ] = useToggle(); return ( Visit stats Edit short URL QR code Delete short URL ); }; export default ShortUrlsRowMenu;