<script setup lang="ts">
const refSearchNav = {
  onClick: () => {
    console.log('onClick dari parent')
  },
  onInput: (val: string) => {
    console.log('>>>', val)
  },
  onClear: () => {
    // refresh page
  },
}

const hreaderPrep: HeaderPrep = {
  title: 'Pasien',
  icon: 'bi bi-journal-check',
  addNav: {
    label: 'Tambah',
    onClick: () => (window.location.pathname = '/emergency/patient/add'),
  },
}
</script>

<template>
  <PubNavHeaderPrep :prep="{ ...hreaderPrep }" :ref-search-nav="refSearchNav" icon="i-lucide-add" />
</template>
