mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
34 lines
741 B
JavaScript
34 lines
741 B
JavaScript
import { notification, message } from 'antd'
|
|
import { FieldTimeOutlined } from 'components/Icons'
|
|
import errStrings from 'config/handlers/errToStrings.js'
|
|
import errNumbers from 'config/handlers/numToError.js'
|
|
import errFlags from 'config/handlers/errToFlag.js'
|
|
|
|
export default {
|
|
SESSION_INVALID: (payload) => {
|
|
notification.error({
|
|
message: payload.msg ?? 'Hey',
|
|
icon: <FieldTimeOutlined />,
|
|
description: errStrings[payload.out] ?? "This session is not valid",
|
|
placement: 'bottomLeft',
|
|
})
|
|
},
|
|
OVERLAY_BADPOSITION: () => {
|
|
|
|
},
|
|
INTERNAL_PROCESS_FAILED: () => {
|
|
|
|
},
|
|
INVALID_DATA: () => {
|
|
|
|
},
|
|
INVALID_PROPS: () => {
|
|
|
|
},
|
|
MISSING_REQUIRED_PAYLOAD: () => {
|
|
|
|
},
|
|
INVALID_INDEX: () => {
|
|
|
|
}
|
|
} |