Files
web/components/Current/Header/BookingButton/index.tsx
Christian Andolf f6b3cf8b92 chore: replace function expression with inline statement
replace destructuring for better static analysis

remove unused variables
2024-11-08 09:25:28 +01:00

17 lines
367 B
TypeScript

"use client"
import "@scandic-hotels/design-system/current/style.css"
import { useIntl } from "react-intl"
import styles from "./bookingButton.module.css"
export default function BookingButton({ href }: { href: string }) {
const intl = useIntl()
return (
<a className={styles.button} href={href}>
{intl.formatMessage({ id: "Book" })}
</a>
)
}