mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
13 lines
512 B
TypeScript
13 lines
512 B
TypeScript
import { Redirect, useLocalSearchParams } from 'expo-router'
|
|
import {
|
|
legacyNotificationOptInDestination,
|
|
type LegacyNotificationOptInParams
|
|
} from '../src/onboarding/legacy-notification-opt-in-destination'
|
|
|
|
export default function NotificationOptInRedirect() {
|
|
const params = useLocalSearchParams<LegacyNotificationOptInParams>()
|
|
|
|
// Why: restored stacks may contain this retired route; replacement keeps Back from reopening it.
|
|
return <Redirect href={legacyNotificationOptInDestination(params)} />
|
|
}
|