timshingyu
1/13/2020 - 12:52 PM

React Function Component

/** @jsx jsx */
import { jsx } from '@emotion/core';

import { Box } from '@chakra-ui/core';
import PropTypes from 'prop-types';
import React from 'react';

function Template({ children, ...props }) {
  return (
    <React.Fragment>
      <Box {...props}>{children}</Box>
    </React.Fragment>
  );
}

Template.defaultProps = {};

Template.propTypes = {
  children: PropTypes.node.isRequired,
};

export default Template;