import React, { ReactElement } from 'react'; import { Field, useStyles2 } from '@grafana/ui'; import { LibraryPanelInput, LibraryPanelInputState } from '../state/reducers'; import { GrafanaTheme2 } from '@grafana/data'; import { css } from '@emotion/css'; import { LibraryPanelCard } from '../../library-panels/components/LibraryPanelCard/LibraryPanelCard'; interface ImportDashboardLibraryPanelsListProps { inputs: LibraryPanelInput[]; label: string; description: string; folderName?: string; } export function ImportDashboardLibraryPanelsList({ inputs, label, description, folderName, }: ImportDashboardLibraryPanelsListProps): ReactElement | null { const styles = useStyles2(getStyles); if (!Boolean(inputs?.length)) { return null; } return (