import Link from 'next/link' import { Alert, Button } from 'ui' export interface AlertErrorProps { ref?: string subject?: string } // [Joshen] To standardize the language for all error UIs const AlertError = ({ ref, subject }: AlertErrorProps) => { const subjectString = subject?.replace(/ /g, '%20') let href = `/support/new?category=dashboard_bug` if (ref) href += `&ref=${ref}` if (subjectString) href += `&subject=${subjectString}` return ( , ]} > Try refreshing your browser, but if the issue persists, please reach out to us via support. ) } export default AlertError