Chore/BOOK-708 replace title component * chore(BOOK-708): replace title with typography * chore(BOOK-708): replace title with typography * chore(BOOK-708): remove Title from package.json Approved-by: Linus Flood Approved-by: Anton Gunnarsson
36 lines
852 B
TypeScript
36 lines
852 B
TypeScript
import { Suspense } from "react"
|
|
|
|
import { Section } from "@/components/Section"
|
|
import { SectionHeader } from "@/components/Section/Header"
|
|
import SectionLink from "@/components/Section/Link"
|
|
import { getLang } from "@/i18n/serverContext"
|
|
|
|
import {
|
|
TransferPointsForm,
|
|
TransferPointsFormSkeleton,
|
|
} from "./TransferPointsForm"
|
|
|
|
type Props = {
|
|
title?: string
|
|
link?: { href: string; text: string }
|
|
subtitle?: string
|
|
}
|
|
|
|
export default async function SASTransferPoints({
|
|
title,
|
|
subtitle,
|
|
link,
|
|
}: Props) {
|
|
const lang = await getLang()
|
|
|
|
return (
|
|
<Section>
|
|
<SectionHeader link={link} preamble={subtitle} heading={title} />
|
|
<SectionLink link={link} variant="mobile" />
|
|
<Suspense fallback={<TransferPointsFormSkeleton lang={lang} />}>
|
|
<TransferPointsForm lang={lang} />
|
|
</Suspense>
|
|
</Section>
|
|
)
|
|
}
|