<script setup>
import { useWorkflowStore } from "../../stores/workflow.js";

const workflow = useWorkflowStore();

function onClearData() {
  workflow.clearData();
}
</script>

<template>
  <section class="dashboard-card p-3">
    <button type="button" class="dashboard-one-click">开启一键自动</button>
    <div class="mt-2 grid grid-cols-2 gap-2">
      <Button label="停止任务" size="small" text severity="danger" />
      <Button label="清除数据" size="small" text severity="danger" @click="onClearData" />
    </div>
    <Button label="智能体配置" size="small" outlined class="mt-2 w-full" />
  </section>
</template>
