mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 06:51:19 +08:00
17 lines
400 B
Plaintext
17 lines
400 B
Plaintext
```js
|
|
// YourPage.js
|
|
|
|
import React from 'react';
|
|
import PageLayout from './PageLayout';
|
|
import DocumentHeader from './DocumentHeader';
|
|
import DocumentList from './DocumentList';
|
|
|
|
function DocumentScreen({ user, document, subdocuments }) {
|
|
return (
|
|
<PageLayout user={user}>
|
|
<DocumentHeader document={document} />
|
|
<DocumentList documents={subdocuments} />
|
|
</PageLayout>
|
|
);
|
|
}
|
|
``` |