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

const useOrgchartTitle = (
  defaultTranslationKey = `title_${UserPermissions.VIEW_ORGANIZATION_CHARTS}`,
) => {
  return useCustomServerTranslation({
    module: 'ORGANIZATION_CHARTS',
    defaultTranslationKey,
    namespace: 'apps',
  });
};

export default useOrgchartTitle;
