+ {onDismiss && (
+
+ layoutRef.current?.dismiss()}
+ Icon={IconCloseRegular}
+ aria-label={dismissLabel || texts.modalClose || t(tokens.modalClose)}
+ type="neutral"
+ backgroundType="transparent"
+ />
+
+ )}
+ {title && (
+
+
+
+ {title}
+
+
+
+ )}
+
+
+
+
+
+ {subtitle && (
+
+ {subtitle}
+
+ )}
+ {description && (
+
+ {description}
+
+ )}
+ {children}
+
+
+ {!hasActions &&
}
+
+
+
+ {hasActions && (
+
+ handleButtonPress(button.onPress)}
+ >
+ {button.text}
+
+ )
+ }
+ secondaryButton={
+ secondaryButton && (
+ handleButtonPress(secondaryButton.onPress)}
+ >
+ {secondaryButton.text}
+
+ )
+ }
+ link={
+ buttonLink && (
+ handleButtonPress(buttonLink.onPress)}
+ bleedY
+ >
+ {buttonLink.text}
+
+ )
+ }
+ />
+
+ )}
+
+