packages/sdk/src/components/hooks/useAttachmentPreviewI18Map.ts
import { useMemo } from 'react';
import { useTranslation } from '../../context/app/i18n';
export const useAttachmentPreviewI18Map = () => {
const { t } = useTranslation();
return useMemo(
() => ({
previewFileLimit: t('preview.previewFileLimit', { size: 10 }),
loadFileError: t('preview.loadFileError'),
}),
[t]
);
};