chore(BOOK-701): replace subtitle with typography * chore(BOOK-701): replace subtitle with typography * chore(BOOK-701): align center * chore(BOOK-701): change token * chore(BOOK-701): change text color * fix(BOOK-704): revert pricechange dialog changes * chore(BOOK-701): remove subtitle from package.json Approved-by: Matilda Landström
27 lines
805 B
TypeScript
27 lines
805 B
TypeScript
import { JsonToHtml } from "@scandic-hotels/design-system/JsonToHtml"
|
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
|
|
|
import styles from "./textcols.module.css"
|
|
|
|
import type { TextColProps } from "@/types/components/blocks/textCols"
|
|
|
|
export default function TextCols({ text_cols }: TextColProps) {
|
|
return (
|
|
<div className={styles.columns}>
|
|
{text_cols.columns.map((col) => {
|
|
return (
|
|
<section key={col.title} className={styles.column}>
|
|
<Typography variant="Title/Subtitle/md">
|
|
<p>{col.title}</p>
|
|
</Typography>
|
|
<JsonToHtml
|
|
nodes={col.text.json.children}
|
|
embeds={col.text.embedded_itemsConnection.edges}
|
|
/>
|
|
</section>
|
|
)
|
|
})}
|
|
</div>
|
|
)
|
|
}
|