/****************************************************************************** * Copyright (c) 2026 Contributors to the Eclipse Foundation. * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0. * * SPDX-License-Identifier: EPL-2.0 *****************************************************************************/ import { FC, type ReactNode } from 'react'; import { Box, Typography, Paper, type PaperProps, Chip, Stack, Divider, Grid, } from '@mui/material'; import type { Customer } from '../../../extension-registry-types'; const sectionPaperProps: PaperProps = { elevation: 1, sx: { p: 3, mb: 3 } }; export interface GeneralDetailsProps { customer: Customer; headerAction?: ReactNode; } export const GeneralDetails: FC = ({ customer, headerAction }) => { const tier = customer.tier; return ( General Information {headerAction && {headerAction}} Name {customer.name} State {tier ? ( <> Tier Tier Type {tier.tierType} Capacity {tier.capacity} requests / {tier.duration}s Refill Strategy {tier.refillStrategy} {tier.description && ( Tier Description {tier.description} )} ) : ( Tier No tier assigned )} CIDR Blocks {customer.cidrBlocks.length > 0 ? ( {customer.cidrBlocks.map((cidr) => ( ))} ) : ( None configured )} ); };