Newer
Older
import React, { Fragment } from 'react'
import { isEmpty } from 'lodash'
import styled from 'styled-components'
import {
Text,
ManuscriptHeader,
ManuscriptDetailsTop,
} from 'pubsweet-component-faraday-ui'
const ManuscriptLayout = ({
currentUser,
editorInChief,
canMakeRevision,
hasResponseToReviewers,
editorialRecommendations,
collection = {},
fragment = {},
permissions,
}) => (
<Root>
{!isEmpty(collection) && !isEmpty(fragment) ? (
collection={collection}
currentUser={currentUser}
fragment={fragment}
{...permissions}
collection={collection}
fragment={fragment}
<ManuscriptMetadata
currentUser={currentUser}
fragment={fragment}
getSignedUrl={getSignedUrl}
/>
</Root>
)
export default ManuscriptLayout
// #region styles
const Root = styled.div`
overflow-y: auto;
min-height: 50vh;
`
// #endregion