import React from 'react'; import { styled } from '@mui/material/styles'; import { editor } from 'monaco-editor'; // eslint-disable-next-line @typescript-eslint/no-unused-vars const StyledWrapper = styled('div')(({ theme }) => ({ maxHeight: '200px', })); const StyledList = styled('ul')(({ theme }) => ({ color: theme.palette.secondary.main, height: '100%', listStyle: 'none', overflow: 'scroll', })); interface IProps { markers: editor.IMarker[]; } const JSONValidationErrorList: React.FC = ({ markers }) => { if (!markers || markers.length === 0) { return null; } return ( {markers.map((marker) => (
  • {marker.startLineNumber}:{marker.startColumn} - {marker.message}
  • ))}
    ); }; export default JSONValidationErrorList;