import React, {useCallback} from 'react'; import {AlertCircle} from 'react-feather'; import styled from 'styled-components'; const RowNoFlex = styled.div` flex-wrap: nowrap; `; export default function ErrorPopup({message, stack}: {message: string; stack: string}) { const copyErrorDetails = useCallback(async () => { await navigator.clipboard.writeText(`${message}\n${stack}`); }, [message, stack]); return (
{message} Copy error details
); } const StyledPopupDesc = styled.span` font-weight: 500; color: ${(props) => props.theme.color.grey[300]}; `; const StyledLink = styled.a` color: ${(props) => props.theme.color.grey[500]}; `;