mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-23 05:24:18 +00:00
15 lines
523 B
JavaScript
15 lines
523 B
JavaScript
import React from "react"
|
|
import BoxFullScrollable from "../base/BoxFullScrollable"
|
|
import SummaryAlert from "./SummaryAlert"
|
|
import useStrings from "../../hooks/useStrings"
|
|
|
|
|
|
export default function BoxAlerts({ alerts, destroy, running, ...props }) {
|
|
const strings = useStrings()
|
|
|
|
return (
|
|
<BoxFullScrollable header={strings.alertTitle} {...props}>
|
|
{alerts.map(alert => <SummaryAlert alert={alert} destroy={() => destroy(alert["id"])} running={running}/>)}
|
|
</BoxFullScrollable>
|
|
)
|
|
}
|