/******************************************************************************** * Copyright (c) 2020 TypeFox and others * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * SPDX-License-Identifier: EPL-2.0 ********************************************************************************/ import { FunctionComponent } from 'react'; import { Box } from '@mui/material'; import { DelayedLoadIndicator } from '../../components/delayed-load-indicator'; import { UserNamespaceExtensionListItem } from './user-namespace-extension-list-item'; import { Extension } from '../../extension-registry-types'; interface UserExtensionListProps { extensions?: Extension[]; loading: boolean; canDelete?: boolean } export const UserExtensionList: FunctionComponent = props => { return { props.extensions && props.extensions.length > 0 ? props.extensions.map((extension: Extension) => ) : null } ; };