Barrel export file for the shared legal-document UI surface, consolidating a reusable `` component and its data-fetching hook into a single import point. ## Key Components | Export | Type | Description | |--------|------|-------------| | `LegalDocumentPage` | Component | Parameterized page component replacing duplicated `PrivacyPolicyPage` and `TermsOfServicePage` | | `LegalDocumentPageProps` | Type | Props interface for `LegalDocumentPage` | | `LegalDocumentMarkdownRendererProps` | Type | Props interface for the internal markdown renderer | | `useLegalDocs` | Hook | Data-fetching hook for retrieving legal document content | | `LegalDocument` | Type | Shape of a single legal document entity | | `UseLegalDocsOptions` | Type | Configuration options for `useLegalDocs` | | `UseLegalDocsReturn` | Type | Return value shape of `useLegalDocs` | ## Usage Example ```typescript import { LegalDocumentPage, type LegalDocumentPageProps, useLegalDocs, type LegalDocument, } from '@/features/legal'; // Render a Privacy Policy page const privacyConfig: LegalDocumentPageProps = { title: 'Privacy Policy', slug: 'privacy-policy', }; export const PrivacyPolicyPage = () => ( ); // Or fetch the document data directly const { document, isLoading } = useLegalDocs({ slug: 'terms-of-service' }); ``` > **Design note:** This barrel consolidates what were previously two ~95% identical page components into a single parameterized surface, reducing duplication while keeping import paths clean for consumers.