feat(WEB-220): label translations
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
"use client"
|
||||
|
||||
import "@scandic-hotels/design-system/current/style.css"
|
||||
|
||||
import { _ } from "@/lib/translation"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import styles from "./bookingButton.module.css"
|
||||
|
||||
export default function BookingButton({ href }: { href: string }) {
|
||||
const { formatMessage } = useIntl()
|
||||
return (
|
||||
<a className={styles.button} href={href}>
|
||||
{_("Book")}
|
||||
{formatMessage({ id: "Book" })}
|
||||
</a>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user