This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r bytter ut all informasjon om dagpenger med generelt kort
- Loading branch information
Showing
2 changed files
with
52 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Heading } from '@navikt/ds-react'; | ||
|
||
import { useSprakValg } from '../../contexts/sprak'; | ||
|
||
import SkrivTilOssChatOgMineDagpenger from './skriv-til-oss-chat-og-mine-dagpenger'; | ||
import lagHentTekstForSprak, { Tekster } from '../../lib/lag-hent-tekst-for-sprak'; | ||
|
||
import spacingStyles from '../../spacing.module.css'; | ||
|
||
const TEKSTER: Tekster<string> = { | ||
nb: { | ||
heading: 'Dagpenger', | ||
}, | ||
en: { | ||
heading: 'Unemployment benefits', | ||
}, | ||
}; | ||
|
||
const DagpengerGenerell = (props: any) => { | ||
const sprak = useSprakValg().sprak; | ||
const tekst = lagHentTekstForSprak(TEKSTER, sprak); | ||
|
||
return ( | ||
<> | ||
<Heading size="small" className={spacingStyles.blokkXs}> | ||
{tekst('heading')} | ||
</Heading> | ||
{props.children} | ||
<SkrivTilOssChatOgMineDagpenger amplitudeTemaNavn='"dagpenger-tema - dagpenger generell"' /> | ||
</> | ||
); | ||
}; | ||
|
||
export default DagpengerGenerell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters