* feat(BOOK-755): Added alert block on Collection pages * feat(BOOK-755): Added alert block on Content pages * feat(BOOK-755): Added alert functionality for RTE Approved-by: Bianca Widstam
14 lines
320 B
TypeScript
14 lines
320 B
TypeScript
import { Alert } from "@scandic-hotels/design-system/Alert"
|
|
|
|
import type { AlertBlock } from "@scandic-hotels/trpc/types/blocks"
|
|
|
|
interface AlertBlockProps extends Pick<AlertBlock, "alert"> {}
|
|
|
|
export function AlertBlock({ alert }: AlertBlockProps) {
|
|
if (!alert) {
|
|
return null
|
|
}
|
|
|
|
return <Alert {...alert} />
|
|
}
|