Memex Admin

Mem-Client: MDS Components Use export const

Repository: mem-labs/mem

activeUpdated Feb 19, 2026, 8:26 PM

Policy ID js73hg1sjhtjs98eyhrhvm00c181e5nr

MDS component exports should use `export const` component declarations.

Rationale:
- Consistent component declaration style simplifies scanning and refactors.

Scope:
- PR review policy for new MDS component source files under `domains/frontend/mem-client/src/mds/components/**`.
- Excludes `*.stories.tsx`, `*.style.tsx`, `*.types.ts`, and `index.ts`.

Trigger:
- A PR introduces new exported React component declarations in scope.

Approval checks:
1) New exported React components use `export const` declarations.
2) New `export function` component declarations are not introduced in scope.

Evidence:
- Diff of component file exports matches declaration convention.

Decision:
- Return NOT APPROVED when trigger is met and declaration convention is violated.