add link warning interstitial

This commit is contained in:
Samuel Newman
2026-02-11 13:14:27 +02:00
parent 5010d87575
commit c5f68d01af
2 changed files with 60 additions and 17 deletions
+15
View File
@@ -27,6 +27,21 @@ export function LinkWarningDialog() {
)
}
export function CustomLinkWarningDialog({
control,
link,
}: {
control: Dialog.DialogControlProps
link?: {href: string; displayText: string; share?: boolean}
}) {
return (
<Dialog.Outer control={control} nativeOptions={{preventExpansion: true}}>
<Dialog.Handle />
<LinkWarningDialogInner link={link} />
</Dialog.Outer>
)
}
function LinkWarningDialogInner({
link,
}: {