Skip to content
Snippets Groups Projects
ManuscriptLayout.js 1.27 KiB
Newer Older
import React, { Fragment } from 'react'
import { isEmpty } from 'lodash'
import styled from 'styled-components'
import {
  Text,
  ManuscriptHeader,
  ManuscriptDetailsTop,
  ManuscriptMetadata,
} from 'pubsweet-component-faraday-ui'
  getSignedUrl,
  currentUser,
  editorInChief,
  hasResponseToReviewers,
  journal = {},
  collection = {},
  fragment = {},
  permissions,
    {!isEmpty(collection) && !isEmpty(fragment) ? (
        <ManuscriptDetailsTop
          collection={collection}
          currentUser={currentUser}
          fragment={fragment}
          getSignedUrl={getSignedUrl}
          history={history}
        <ManuscriptHeader
          editorInChief={editorInChief}
          journal={journal}
        />
        <ManuscriptMetadata
          currentUser={currentUser}
          fragment={fragment}
          getSignedUrl={getSignedUrl}
        />
      <Text>Loading...</Text>
  </Root>
)

export default ManuscriptLayout

// #region styles
const Root = styled.div`
  overflow-y: auto;
  min-height: 50vh;
`
// #endregion