Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / @skava/ui   js

Repository URL to install this package:

Version: 4.2.0-a11y.0 

/ src / components / templates / PLPTemplate / PLPTemplate.tsx

import React from 'react'
import * as Template from './styled'

function defaultTemplate() {
  return (
    <Template.PLPpageWrapperArea>
      <Template.PLPbannersectionArea />
      <Template.PLPcontentsectionArea />
      <Template.PLPfootersectionArea />
    </Template.PLPpageWrapperArea>
  )
}

function gridTemplate() {
  return (
    <Template.PLPpageWrapperArea>
      <Template.PLPbannersectionArea />

      <Template.PLPcontentsectionArea>
        <Template.PLPinnercontentsectionArea>
          <Template.FilterSectionArea />
          <Template.HeaderSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSection2xArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
          <Template.ProductItemSectionArea />
        </Template.PLPinnercontentsectionArea>
      </Template.PLPcontentsectionArea>

      <Template.PLPfootersectionArea />
    </Template.PLPpageWrapperArea>
  )
}

class PLPTemplate extends React.PureComponent {
  static defaultProps = {
    gridType: '',
  }
  render() {
    const renderItems = this.props.gridType === 'list' ? gridTemplate() : defaultTemplate()
    return renderItems
  }
}

export { PLPTemplate }
export default PLPTemplate