LegalNotice

Renders the standard 'not legal advice' disclaimer the toolkit ships. Drop it under any component that surfaces an NDPA section citation or generates an artifact (policy, breach report, DPIA result).

Overview

The toolkit generates legal artifacts — privacy policies, breach reports, DPIA results — and labels them with NDPA section citations. LegalNotice renders the standard disclaimer making clear that the output is generated guidance, not legal advice, and that consumers should have a qualified Nigerian data protection lawyer review it before relying on it.

The notice text comes from the constants LEGAL_DISCLAIMER_SHORT and LEGAL_DISCLAIMER_LONG, also exported from the root entry — use those directly if you need the text outside React (PDF/DOCX exports, email templates, server logs).

Quickstart

import { LegalNotice } from '@tantainnovative/ndpr-toolkit';

export default function DPIASummary({ result }: { result: DPIAResult }) {
  return (
    <section>
      <DPIAReport result={result} />
      {/* short variant for footers / captions */}
      <LegalNotice />
    </section>
  );
}

// long variant for export documents and modals
<LegalNotice variant="long" />

Props

PropTypeDescription
variant'short' | 'long''short' is a one-liner appropriate for captions and footers. 'long' is the full notice for export documents and dialogs. Defaults to 'short'.
classNamestringClass on the wrapping <p>. Defaults to 'ndpr-legal-notice' when omitted.
hiddenbooleanWhen true, renders nothing — an escape hatch when you want the disclaimer surfaced elsewhere in the layout (e.g. a global app footer).

Rendered markup

<p role="note" class="ndpr-legal-notice" data-ndpr-legal-notice="short">
  {LEGAL_DISCLAIMER_SHORT}
</p>

The data-ndpr-legal-notice attribute and the role="note" are stable selectors — safe to target from your own CSS or tests.