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

export const useSessionsTitle = (
  defaultTranslationKey = `title_${UserPermissions.VIEW_LEARNING_SESSIONS}`,
) => {
  const sessionsTitle = useCustomServerTranslation({
    module: 'LEARNING_SESSIONS',
    defaultTranslationKey,
    namespace: 'apps',
  });

  return { sessionsTitle };
};
