RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/components/GenericTable/hooks/useItemsPerPageLabel.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { useTranslation } from '@rocket.chat/ui-contexts';
import { useCallback } from 'react';

export const useItemsPerPageLabel = (): (() => string) => {
    const t = useTranslation();
    return useCallback(() => t('Items_per_page:'), [t]);
};