# All files / layouts/Page Page.js

0% Statements 0/10
0% Branches 0/4
0% Functions 0/1
0% Lines 0/6

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37

     import PropTypes from 'prop-types';
    import styled from 'styled-components';

    const Page = styled.article.withConfig({ displayName: 'Page' })`
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      width: 100%;
      min-height: 0;

      & > *:last-child {
        flex: 1 1 auto;
      }
    `;

    Page.propTypes = {
      /**
       * Adds an id to the element.
       */
      id: PropTypes.string,
      /**
       * Adds a class name to the element.
       */
      className: PropTypes.string,
    };

    Page.defaultProps = {
      id: null,
      className: null,
    };

    /**
     * @component
     */
    export default Page;