/*!
 * KoliBri - The accessible HTML-Standard
 */
import { iconsProp, labelProp } from "../../props";
import { BaseController } from "../base-controller";
import { iconPropsConfig } from "./api";
export class IconController extends BaseController {
    constructor(stateAccess) {
        super(stateAccess, iconPropsConfig);
    }
    componentWillLoad(props) {
        const { icons, label } = props;
        this.watchIcons(icons);
        this.watchLabel(label);
    }
    watchIcons(value) {
        iconsProp.apply(value, (v) => {
            this.setRenderProp('icons', v);
        });
    }
    watchLabel(value) {
        labelProp.apply(value, (v) => {
            this.setRenderProp('label', v);
        });
    }
}
//# sourceMappingURL=controller.js.map
