export function usesify(addons: Component.addon | Component.addon[]) {
    return function use(target) {
        const _addons = Array.isArray(addons) ? addons : [addons]
        _addons.map((addon) => {
            if (typeof addon === "function") {
                addon(target)
            } else {
                console.error(`addon ${addons} must be a function`)
            }
        })
    }
}
