<template>
	<div class="parameters">
		<h2>{{ title }}</h2>
		<ul>
			<li v-for="param in params" :key="param.id">
				<code> {{ param.name }}</code> ({{ param.type.name }})
			</li>
		</ul>
	</div>
</template>

<script>
export default {
	props: {
		title: {
			type: String,
			default: '',
		},
		params: {
			type: Array,
			default: () => [],
		},
	},
}
</script>

<style>
.parameters ul {
	padding: 0;
	list-style: none;
}
</style>