import useCustomServerTranslation from 'src/hooks/useCustomServerTranslation';
import { UserPermissions } from 'src/utils/permissions';

const useCoursesTitle = (
  defaultTranslationKey = `title_${UserPermissions.VIEW_COURSES}`,
) => {
  return useCustomServerTranslation({
    module: 'COURSES',
    defaultTranslationKey,
    namespace: 'apps',
  });
};

export default useCoursesTitle;
