<script>
    let { item, onclick } = $props();
</script>

<fieldset {onclick}>
    <legend>{item.code} | {item.name}</legend>
    <div>{@html item.description.rendered}</div>
    <span>{item.unit_price/100} {item.currency} / {item.unit}</span>
</fieldset>
