<script lang="ts">
import Vue from 'vue';

// NOTE This component is useful in conjunction with
// the CSS :empty selector. Since it considers empty
// whitespace as content, this component can be used
// to strip out all text nodes as children.

export default Vue.extend({
	render(m) {
		const children = this.$slots.default?.filter(node => node.text === undefined) || [];

		return m('div', children);
	}
});
</script>