errorStory.tsx 254 B

12345678910111213
  1. import Alert from 'sentry/components/alert';
  2. interface Props {
  3. error: Error;
  4. }
  5. export default function ErrorStory({error}: Props) {
  6. return (
  7. <Alert type="error" showIcon>
  8. <strong>{error.name}:</strong> {error.message}
  9. </Alert>
  10. );
  11. }