fix(BOOK-293): changed variants and props on IconButton component * fix(BOOK-293): changed variants and props on IconButton component * fix(BOOK-293): inherit color for icon Approved-by: Bianca Widstam Approved-by: Christel Westerberg
21 lines
594 B
TypeScript
21 lines
594 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="sm" color="Primary" onPress={onPress}>
|
|
<MaterialIcon size={20} icon="calendar_add_on" color="CurrentColor" />
|
|
|
|
{intl.formatMessage({
|
|
id: "common.addToCalendar",
|
|
defaultMessage: "Add to calendar",
|
|
})}
|
|
</Button>
|
|
)
|
|
}
|