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