import { onUpdated , ref , Slots } from 'vue' ; export default function usePickSlots ( slots , slotName ) { const slot = ref ( slots [ slotName ] ) ; onUpdated ( ( ) => { const newSlot = slots [ slotName ] ; if ( slot . value !== newSlot ) { slot . value = newSlot ; } } ) ; return slot ; }