// Cloudscape import { Box, Button, ColumnLayout, Container, Header, Popover, StatusIndicator } from '@cloudscape-design/components'; // Clipboardy import clipboard from 'clipboardy'; // Utils import { displayUnixDate } from '../../utils/DateTime'; // Top of the page datastore config export function DatastoreConfiguration({ datastore }) { function datastoreIndicatorStatus(status) { switch (status) { case 'ACTIVE': return 'success'; case 'DELETED': return 'stopped'; case 'CREATE_FAILED': return 'warning'; case 'CREATING': case 'DELETING': return 'in-progress'; default: return 'info'; } } function ContainerDetails() { return ( Name {datastore.datastoreName} Created At {displayUnixDate(datastore.createdAt)} Updated At {displayUnixDate(datastore.updatedAt)} Status Available ID Data store ID copied to clipboard} > { clipboard.write(datastore.datastoreId); }} /> {datastore.datastoreId} ARN Data store ARN copied to clipboard} > { clipboard.write(datastore.datastoreArn); }} /> {datastore.datastoreArn} ); } return ( Datastore Configuration}> ); }