import variables from 'config/variables'; import { MdEdit, MdCancel } from 'react-icons/md'; import { Button } from 'components/Elements'; const QuickLink = ({ item, deleteLink, startEditLink }) => { let target, rel = null; if (localStorage.getItem('quicklinksnewtab') === 'true') { target = '_blank'; rel = 'noopener noreferrer'; } const useText = localStorage.getItem('quicklinksText') === 'true'; if (useText) { return ( deleteLink(item.key, e)} href={item.url} target={target} rel={rel} draggable={false} > {item.name} ); } const img = item.icon || 'https://icon.horse/icon/ ' + item.url.replace('https://', '').replace('http://', ''); return (
{item.name}
{item.name}
{item.url}
); }; export { QuickLink as default, QuickLink };