mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-23 11:44:10 -05:00
18 lines
433 B
JavaScript
18 lines
433 B
JavaScript
import React from 'react';
|
|
import Typography from '@mui/material/Typography';
|
|
|
|
export default function Error({ error: { message, hints } }) {
|
|
return (
|
|
<>
|
|
<Typography variant="subtitle1" color="error" gutterBottom style={{ marginBottom: 0 }}>
|
|
{message}
|
|
</Typography>
|
|
{hints.map((hint) => (
|
|
<Typography key={hint} variant="body2">
|
|
{hint}
|
|
</Typography>
|
|
))}
|
|
</>
|
|
);
|
|
}
|