import { faChartPie as pieChartIcon, faEdit as editIcon, faMinusCircle as deleteIcon, faQrcode as qrIcon, } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import type { FC } from 'react'; import { DropdownItem } from 'reactstrap'; import { useToggle } from '../../../src/utils/helpers/hooks'; import { RowDropdownBtn } from '../../../src/utils/RowDropdownBtn'; import type { ShortUrl, ShortUrlModalProps } from '../data'; import { ShortUrlDetailLink } from './ShortUrlDetailLink'; interface ShortUrlsRowMenuProps { shortUrl: ShortUrl; } type ShortUrlModal = FC; export const ShortUrlsRowMenu = ( DeleteShortUrlModal: ShortUrlModal, QrCodeModal: ShortUrlModal, ) => ({ shortUrl }: ShortUrlsRowMenuProps) => { const [isQrModalOpen,, openQrCodeModal, closeQrCodeModal] = useToggle(); const [isDeleteModalOpen,, openDeleteModal, closeDeleteModal] = useToggle(); return ( Visit stats Edit short URL QR code Delete short URL ); }; export type ShortUrlsRowMenuType = ReturnType;