SW-3572 API route for listing hotels per city or country * wip hotel data endpoint * Correct route params type * wip * skip static paths call * timeout when getting destinations take too long * call noStore when we get a timeout * add cache-control headers * . * . * . * wip * wip * wip * wip * add route for getting hotels per country * include city when listing by country * fix distance SI unit * fix sorting * Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/SW-3572-hotel-data-endpoint * packages/tracking passWithNoTests * revalidate must be static value * remove oxc reference * cleanup * cleanup hotel api route * feat(SW-3572): cleanup error handling Approved-by: Anton Gunnarsson
52 lines
1.5 KiB
TypeScript
52 lines
1.5 KiB
TypeScript
/* eslint-disable formatjs/no-literal-string-in-jsx */
|
|
import { getLang } from "@/i18n/serverContext"
|
|
|
|
import { texts } from "./Texts"
|
|
|
|
import styles from "./notFound.module.css"
|
|
|
|
export default async function NotFound() {
|
|
const lang = await getLang()
|
|
const infoTexts = texts[lang]
|
|
|
|
return (
|
|
<div className={styles.container}>
|
|
<div className={styles.content}>
|
|
<h1 className={styles.header}>{infoTexts.title}</h1>
|
|
<div className={styles.pitch}>
|
|
<p className={styles.text}>
|
|
{infoTexts.goToStartPage.question}
|
|
<a
|
|
className={styles.link}
|
|
title={infoTexts.goToStartPage.linkText}
|
|
href={infoTexts.goToStartPage.link}
|
|
>
|
|
{infoTexts.goToStartPage.linkText}
|
|
</a>
|
|
?
|
|
</p>
|
|
<p className={styles.text}>
|
|
{infoTexts.goToDestinations.question}
|
|
<a
|
|
className={styles.link}
|
|
title={infoTexts.goToDestinations.linkText}
|
|
href={infoTexts.goToDestinations.link}
|
|
>
|
|
{infoTexts.goToDestinations.linkText}
|
|
</a>
|
|
{infoTexts.goToOffers.question}
|
|
<a
|
|
className={styles.link}
|
|
title={infoTexts.goToOffers.linkText}
|
|
href={infoTexts.goToOffers.link}
|
|
>
|
|
{infoTexts.goToOffers.linkText}
|
|
</a>
|
|
.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|