@zohodesk/utils
Version:
Unified Component Library - Utils
45 lines • 1.22 kB
JavaScript
// import PropTypes from "prop-types";
// import mergeStyle from "./mergeStyle";
// import { Button } from "../../base/src/Button/index";
// export default (props)=>{
// let { customStyle, openCustomStyle} = props;
// return {
// customStyle,
// openDefaultToCustomize
// };
// }
// if two is same ==> do the think replace with last , append at end
// replace vs append ==> append
// append vs replace ==> replace
// DotButton.js
// DotButton.module.css
// function DotButton({ customStyle }){
// dotButdefault => customStyle : {
// base : DotButton.style.pols
// }
// props => customStyle {
// base :
// }
// return <Button customStyle={}></Button>
// }
// Button => set of compoents
// DotButton => set of comepons
// function creatButtonWithIcon({Button,Icon}){
// return (props)=>{
// customStyle={}
// return <Button customStyle={ssss}>
// <Icon></Icon>
// </Button>
// }
// }
// Button1.js
// Icon1.js
// creatButtonWithIcon({
// Button : Button1,
// Icon : Icon1
// });
// Button1custome(props){
// props.customStyle
// combineCustomStyle()
// return Button
// }