Files
nebula.js/commands/serve/web/components/Hub/SelectEngine/Error.jsx
Ahmad Mirzaei 4954ac4ff4 refactor: hub components (#967)
* refactor: hub components
2022-10-20 16:27:43 +02:00

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>
))}
</>
);
}