add link warning interstitial
This commit is contained in:
@@ -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,
|
||||
}: {
|
||||
|
||||
Reference in New Issue
Block a user