import PropTypes from "prop-types";
import React from "react";
import Shapes from "../../shapes/index";
import SimulationAuthRow from "./SimulationAuthRow";
const SimulationAuthList = ({ authorizations }) => {
return (
{authorizations.length === 0 ? (
No simulations here yet... Add some with the 'New
Simulation' button!
) : (
| Simulation name |
Last edited |
Access rights |
|
{authorizations.map(authorization => (
))}
)}
);
};
SimulationAuthList.propTypes = {
authorizations: PropTypes.arrayOf(Shapes.Authorization).isRequired
};
export default SimulationAuthList;