storybook/docs/snippets/react/simple-page-implementation.ts.mdx
2022-11-17 16:33:22 +01:00

25 lines
563 B
Plaintext

```tsx
// YourPage.ts|tsx
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>
);
}
```