<script props>
  module.exports = {
    onclick: props.onclick || '',
    titlestyle: props.titlestyle || '',
  }
</script>
<div class="project">
  <if condition="$slots.img?.filled || $slots.links?.filled">
    <div class="project-title" style="{{titlestyle}}">
      <if condition="$slots.img?.filled">
        <div class="figure">
          <slot:img></slot:img>
        </div>
      </if>
      <slot:title></slot:title>
    </div>
  </if>
  <if condition="$slots.description?.filled || $slots.subtitle?.filled">
    <slot:description></slot:description>
  </if>
</div>