/**
 * 所有DEMO 必须使用该组件包裹
 */
import { WKView } from '@wakeapp/components';
import React from 'react';

const PageWrapper: React.FC<{ title?: string }> = props => {
  return (
    <div
      style={{ width: '100%', backgroundColor: '#F7F7F7', minHeight: '100vh', overflowX: 'hidden', overflowY: 'auto' }}
    >
      {props.title && <WKView className="text-base p-3 w-screen">{props.title}</WKView>}
      {props.children}
    </div>
  );
};

export default PageWrapper;
