const findToggleInstances = rootInstance => findAllInRenderedTree(rootInstance, c => isCompositeComponentWithType(c, Toggle), )
const findSwitchInstances = rootInstance => findAllInRenderedTree(rootInstance, c => isCompositeComponentWithType(c, Switch), )