import {useOnNavigateBack} from '../hooks/events/useOnNavigateBack'
import {useNavigateWithTransition} from '../hooks/navigation/useNavigateWithTransition'

export function NavigationManager() {
  const navigate = useNavigateWithTransition()

  // Handle native back button press
  useOnNavigateBack(() => {
    navigate(-1)
  })

  return null
}
