forked from pu428f3pz/InternshipProject
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
435 B
9 lines
435 B
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
import * as React from 'react';
|
|
export default function useMergedConfig(propConfig, templateConfig) {
|
|
return React.useMemo(function () {
|
|
var support = !!propConfig;
|
|
return [support, _extends(_extends({}, templateConfig), support && _typeof(propConfig) === 'object' ? propConfig : null)];
|
|
}, [propConfig]);
|
|
} |