department-of-veterans-affairs/vets-website

View on GitHub
src/applications/representative-appoint/hooks/useReviewPage.js

Summary

Maintainability
A
0 mins
Test Coverage
import { useMemo } from 'react';

export const useReviewPage = () => {
  return useMemo(() => {
    const urlParams = new URLSearchParams(window.location.search);
    return urlParams.get('review') === 'true';
  }, []);
};