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(({ href, path }) => (
{path}
))`
display: block;
`;
function FileLinkList({ values, getAsset, field }) {
return (
{values.map(value => (
))}
);
}
function FileContent(props) {
const { value, getAsset, field } = props;
if (Array.isArray(value) || List.isList(value)) {
return ;
}
return ;
}
function FilePreview(props) {
return (
{props.value ? : null}
);
}
FilePreview.propTypes = {
getAsset: PropTypes.func.isRequired,
value: PropTypes.node,
};
export default FilePreview;