import { Box, Button, Card, CardContent, Dialog, DialogActions, DialogContent, DialogTitle, Typography } from "@mui/material"; import { Fragment } from "react"; import { IOccurrence } from "../../server/src/core/interfaces"; import ConfigurationsHelper from "./ConfigurationsHelper"; import { DisablableConfiguration } from "./DisablableConfiguration"; import { LibraryInfo } from "./LibraryInfo"; import ReportHelper from "./ReportHelper"; export interface IOccurrencesProps { occurrences: IOccurrence[]; onClose(): void; onRefresh(): void; } export const Occurrences = (props: IOccurrencesProps) => { const occurrences = props.occurrences; return ( props.onClose()} open> Occurrences {occurrences.map((occ, i) => { if (ReportHelper.isOccurrencesFullDisabled(occ)) { return ; } const path = [...occ.usedBy]; path.reverse(); return ( {occ.configurations .filter((c) => ConfigurationsHelper.isEnabled(c)) .map((c) => ( ))} {path.map((u, level) => ( {level == path.length - 1 ? ( ) : ( )} ))} ); })} ); };