1
1
import React , { ReactElement } from "react" ;
2
- import { BodyShort , Box , Button , Heading , Hide , HStack } from "@navikt/ds-react" ;
2
+ import { BodyShort , Box , Heading } from "@navikt/ds-react" ;
3
3
import useQuery from "@/app/(sok)/_components/QueryProvider" ;
4
4
import joinStringWithSeperator from "@/app/_common/utils/joinStringWithSeperator" ;
5
- import DetectiveIcon from "@/app/(sok)/_components/icons/DetectiveIcon" ;
6
5
7
6
interface DividerProps {
8
7
index : number ;
@@ -13,27 +12,15 @@ export default function Divider({ index, indexOfLastWithScoreAboveThreshold }: D
13
12
14
13
if ( indexOfLastWithScoreAboveThreshold !== 0 && indexOfLastWithScoreAboveThreshold === index ) {
15
14
return (
16
- < Box paddingInline = "4" paddingBlock = "2" borderRadius = "small" background = "surface-subtle" className = "mt-12" >
17
- < HStack wrap = { false } justify = "space-between" align = "center" gap = "4" >
18
- < Box >
19
- < Heading level = "3" size = "small" className = "mb-05" >
20
- Viser bare mest relevante treff
21
- </ Heading >
15
+ < Box background = "surface-alt-1-subtle" className = "mt-16" paddingBlock = "4" paddingInline = "2" >
16
+ < Heading level = "3" size = "medium" className = "mb-05" >
17
+ Mindre relevante treff
18
+ </ Heading >
22
19
23
- < BodyShort spacing >
24
- 13 flere annonser nevner < b > { joinStringWithSeperator ( query . getAll ( "q" ) , "eller" ) } </ b > i
25
- annonseteksten
26
- </ BodyShort >
27
- < Button variant = "secondary-neutral" size = "small" >
28
- Søk på nytt med alle treff
29
- </ Button >
30
- </ Box >
31
- < Hide below = "md" >
32
- < Box paddingInline = "4" >
33
- < DetectiveIcon />
34
- </ Box >
35
- </ Hide >
36
- </ HStack >
20
+ < BodyShort >
21
+ Treffene er ikke like relevante, men nevner likevel{ " " }
22
+ < b > { joinStringWithSeperator ( query . getAll ( "q" ) , "eller" ) } </ b > i annonseteksten
23
+ </ BodyShort >
37
24
</ Box >
38
25
) ;
39
26
}
0 commit comments