const paramsString = window.location.search;
const searchParams = new URLSearchParams(paramsString);
import { normalizeTerm } from '@gouvfr/dsfr-kit';

const getQuery = () => {
    return normalizeTerm(searchParams.get('query'));
};

const getCurrentPagination = () => {
  return parseInt(searchParams.get('page'));
};

export { getQuery, getCurrentPagination };
