/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ import moment from 'moment'; import type { FunctionComponent } from 'react'; import React from 'react'; import { EuiFlyout, EuiFlyoutHeader, EuiFlyoutBody, EuiFlyoutFooter, EuiFlexGroup, EuiFlexItem, EuiButtonEmpty, EuiButton, EuiTitle, EuiDescriptionList, EuiSpacer, } from '@elastic/eui'; import type { FileJSON } from '@kbn/files-plugin/common'; import { css } from '@emotion/react'; import type { MyImageMetadata } from '../../common'; import { FileClients } from '../types'; import { Image } from '../imports'; interface Props { file: FileJSON; files: FileClients; onDismiss: () => void; } export const DetailsFlyout: FunctionComponent = ({ files, file, onDismiss }) => { return (

{file.name}

{file.alt
{file.meta ? JSON.stringify(file.meta, null, 2) : ''} ), }, ]} />
Download Close
); };