chore(SW-3397) Moved Confirmation component with Header to booking-flow package * chore(SW-3397) Moved Confirmation component with Header to booking-flow package * chore(SW-3397): Optimised code Approved-by: Anton Gunnarsson
27 lines
662 B
TypeScript
27 lines
662 B
TypeScript
"use client"
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { Button } from "@scandic-hotels/design-system/Button"
|
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
|
|
|
export function AddToCalendarButton({ onPress }: { onPress: () => void }) {
|
|
const intl = useIntl()
|
|
|
|
return (
|
|
<Button
|
|
variant="Text"
|
|
size="Small"
|
|
color="Primary"
|
|
wrapping
|
|
typography="Body/Supporting text (caption)/smBold"
|
|
onPress={onPress}
|
|
>
|
|
<MaterialIcon size={20} icon="calendar_add_on" color="CurrentColor" />
|
|
|
|
{intl.formatMessage({
|
|
defaultMessage: "Add to calendar",
|
|
})}
|
|
</Button>
|
|
)
|
|
}
|