useExternalLink
- Description
- Params and Return
- Example
Hook to display a warning that the user is leaving the app when tapping an external link
Param / Return | Description |
---|---|
returns | an alert showing user they are leaving the app |
How to use the useExternalLink component
const launchExternalLink = useExternalLink()
const onDecisionReview = async (): Promise<void> => {
launchExternalLink(LINK_URL_DECISION_REVIEWS)
}