mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-04 17:16:40 +07:00
5 lines
221 B
TypeScript
5 lines
221 B
TypeScript
import { ERROR_LITERAL, ERRORS } from '~/constants/errors';
|
|
import { ValueOf } from '~/redux/types';
|
|
|
|
export const t = (string: ValueOf<typeof ERRORS>): ValueOf<typeof ERROR_LITERAL> =>
|
|
ERROR_LITERAL[string] || string;
|