mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
26 lines
589 B
Plaintext
26 lines
589 B
Plaintext
```js
|
|
// YourPage.ts|tsx
|
|
|
|
import React from 'react';
|
|
|
|
import PageLayout from './PageLayout';
|
|
import Document from './Document';
|
|
import SubDocuments from './SubDocuments';
|
|
import DocumentHeader from './DocumentHeader';
|
|
import DocumentList from './DocumentList';
|
|
|
|
export interface DocumentScreen {
|
|
user?: {};
|
|
document?: Document;
|
|
subdocuments?: SubDocuments[];
|
|
}
|
|
|
|
function DocumentScreen({ user, document, subdocuments }) {
|
|
return (
|
|
<PageLayout user={user}>
|
|
<DocumentHeader document={document} />
|
|
<DocumentList documents={subdocuments} />
|
|
</PageLayout>
|
|
);
|
|
}
|
|
``` |