import { useQuery } from 'react-query';

import { getShowAdminInformation } from 'src/pages/dashboard/Learning/Paths/services';

import { pathsKeys } from '../queries';

const useGetShowAdminInformation = () => {
  return useQuery({
    queryKey: pathsKeys.showAdminInformation(),
    queryFn: getShowAdminInformation,
    select: res => res.data.showAdminInformation,
    staleTime: 6000,
  });
};

export default useGetShowAdminInformation;
