chore: SW-3145 Moved tempdesign button to design-system * chore: SW-3145 Moved tempdesign button to design-system Approved-by: Anton Gunnarsson
30 lines
768 B
TypeScript
30 lines
768 B
TypeScript
"use client"
|
|
|
|
import { useIntl } from "react-intl"
|
|
|
|
import Body from "@scandic-hotels/design-system/Body"
|
|
import { OldDSButton as Button } from "@scandic-hotels/design-system/OldDSButton"
|
|
|
|
import styles from "./retry.module.css"
|
|
|
|
import type { RetryProps } from "@/types/components/hotelReservation/bookingConfirmation/rooms/linkedReservation"
|
|
|
|
export default function Retry({ handleRefetch }: RetryProps) {
|
|
const intl = useIntl()
|
|
return (
|
|
<div className={styles.retry}>
|
|
<Body>
|
|
{intl.formatMessage({
|
|
defaultMessage: "Something went wrong!",
|
|
})}
|
|
</Body>
|
|
|
|
<Button size={"small"} onPress={handleRefetch}>
|
|
{intl.formatMessage({
|
|
defaultMessage: "Try again",
|
|
})}
|
|
</Button>
|
|
</div>
|
|
)
|
|
}
|