ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

index.js (663B)


      1 /**
      2  * React Starter Kit (https://www.reactstarterkit.com/)
      3  *
      4  * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
      5  *
      6  * This source code is licensed under the MIT license found in the
      7  * LICENSE.txt file in the root directory of this source tree.
      8  */
      9 
     10 import React from 'react';
     11 import Layout from '../../components/Layout';
     12 import Page from '../../components/Page';
     13 
     14 export default {
     15 
     16   path: '/privacy',
     17 
     18   async action() {
     19     const data = await require.ensure([], require => require('./privacy.md'), 'privacy');
     20 
     21     return {
     22       title: data.title,
     23       chunk: 'privacy',
     24       component: <Layout><Page {...data} /></Layout>,
     25     };
     26   },
     27 
     28 };