<template lang="html">
	<div v-show="title == selectedTitle">
		<slot/>
	</div>
</template>

<script>
import { inject } from 'vue'

export default {
	props: {
		title: {
			type: String,
			required: true
		}
	},
	setup() {
		const selectedTitle = inject('selectedTitle')

		return {
			selectedTitle
		}
	}
}
</script>
