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