import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import { List } from 'immutable'; import { WidgetPreviewContainer } from 'netlify-cms-ui-default'; const FileLink = styled(({ value, getAsset }) => ( {value} ))` display: block; `; function FileLinkList({ values, getAsset }) { return (
{values.map(value => ( ))}
); } function FileContent({ value, getAsset }) { if (Array.isArray(value) || List.isList(value)) { return ; } return ; } const FilePreview = props => ( {props.value ? : null} ); FilePreview.propTypes = { getAsset: PropTypes.func.isRequired, value: PropTypes.node, }; export default FilePreview;