-
- {illustration && (
-
{illustration}
- )}
-
-
- {children}
-
- {description && (
- {description}
- )}
-
-
+export const PageHeader = ({ children }: PageHeaderProps) => {
+ return (
+
+
+
+ {children}
+
- );
- }
-);
-
-export default PageHeader;
+
+ );
+};
diff --git a/pages/[uuid]/ettersendelse/index.tsx b/pages/[uuid]/ettersendelse/index.tsx
index 66e57bc..3e7eb80 100644
--- a/pages/[uuid]/ettersendelse/index.tsx
+++ b/pages/[uuid]/ettersendelse/index.tsx
@@ -1,7 +1,7 @@
import { BodyShort, Button, Heading, Label, Link, ReadMore } from '@navikt/ds-react';
import { LucaGuidePanel, ScanningGuide, Vedlegg } from '@navikt/aap-felles-react';
import { GetServerSidePropsResult, NextPageContext } from 'next';
-import PageHeader from 'components/PageHeader';
+import { PageHeader } from 'components/PageHeader';
import { Section } from 'components/Section/Section';
import { Søknad, VedleggType } from 'lib/types/types';
import * as styles from 'pages/[uuid]/ettersendelse/Ettersendelse.module.css';
@@ -56,7 +56,7 @@ const Index = ({ søknad }: PageProps) => {
)} - nav.no`}
-
+
{formatMessage(
{ id: 'ettersendelse.appTittel' },
{
diff --git a/pages/ettersendelse.tsx b/pages/ettersendelse.tsx
index d863cf0..ed63e0d 100644
--- a/pages/ettersendelse.tsx
+++ b/pages/ettersendelse.tsx
@@ -1,5 +1,5 @@
import { ReadMore, Label, BodyShort, Button, Heading, Link } from '@navikt/ds-react';
-import PageHeader from 'components/PageHeader';
+import { PageHeader } from 'components/PageHeader';
import { Section } from 'components/Section/Section';
import { beskyttetSide, getAccessToken } from '@navikt/aap-felles-utils';
import { GetServerSidePropsResult, NextPageContext } from 'next';
@@ -40,7 +40,7 @@ const Ettersendelse = () => {
)} - nav.no`}
-
+
{formatMessage(
{ id: 'ettersendelse.appTittel' },
{