<script setup>
import { defineProps, ref, watch, inject, computed } from "vue";
import useSearchParam from "@/hooks/useSearchParam";

const { searchParams } = useSearchParam();

const isSearchDisabled = ref(true);
const search = async () => {

};

const exportFile = async () => {

};

const submitBtns = computed(() => [
  {
    title: "查詢",
    key: "submit",
    active: false,
    onClick: search,
    disabled: isSearchDisabled.value,
  },
  {
    title: "匯出",
    key: "export",
    active: false,
    onClick: exportFile,
    disabled: isSearchDisabled.value,
  },
]);



</script>

<template>
  <ButtonGroup :items="submitBtns" :withLine="false" class="ml-2 mr-8 xl:mr-10" />
</template>

<style lang="scss" scoped></style>
