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
29 lines
781 B
TypeScript
29 lines
781 B
TypeScript
"use client"
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { FakeButton } from "@scandic-hotels/design-system/FakeButton"
|
|
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
|
|
|
import styles from "./mapWithButtonWrapper.module.css"
|
|
|
|
export function MapWithButtonWrapper({ children }: React.PropsWithChildren) {
|
|
const intl = useIntl()
|
|
return (
|
|
<div className={styles.container}>
|
|
{children}
|
|
<FakeButton
|
|
variant="Primary"
|
|
color="Inverted"
|
|
size="sm"
|
|
className={styles.button}
|
|
>
|
|
<MaterialIcon icon="map" color="CurrentColor" size={20} />
|
|
{intl.formatMessage({
|
|
id: "destination.seeOnMap",
|
|
defaultMessage: "See on map",
|
|
})}
|
|
</FakeButton>
|
|
</div>
|
|
)
|
|
}
|