UNPKG

@alifd/meet-react

Version:

Fusion Mobile React UI System Component

11 lines 494 B
import { isProduction } from './env'; export function deprecated(props, instead, component) { if (!isProduction() && typeof console !== 'undefined' && console.error) { return console.error("Warning: [ ".concat(props, " ] is deprecated at [ ").concat(component, " ], ") + "use [ ".concat(instead, " ] instead of it.")); } } export function warning(msg) { if (!isProduction() && typeof console !== 'undefined' && console.error) { return console.error("Warning: ".concat(msg)); } }