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!
: {authorizations.map(authorization => ( ))}
Simulation name Last edited Access rights
}
); }; SimulationAuthList.propTypes = { authorizations: PropTypes.arrayOf(Shapes.Authorization).isRequired, }; export default SimulationAuthList;