/components/card/actionCard

import { button } from "@hedia/hexui/components/button";
import { actionCard } from "@hedia/hexui/components/card";
import { deleteOutlineIcon, editOutlineIcon, lockOutlineIcon } from "@hedia/iconly/outline";

export function renameAction() {
  return actionCard({
    title: "Rename file",
    description: "When you rename the file, its URL will not change.",
    action: button({ kind: "secondary" }, editOutlineIcon(), "Rename file"),
  });
}

export function deleteAction() {
  return actionCard({
    title: "Delete file",
    description: "Deleting a file will remove all its contents permanently. This action cannot be undone.",
    action: button({ kind: "secondary-danger" }, deleteOutlineIcon(), "Delete file"),
  });
}

export function lockAction() {
  return actionCard({
    title: "Lock drive",
    description: "Locking a drive prevents any modifications to its contents.",
    action: button(
      { kind: "secondary", "data-action": "showModal", "data-target": "#lockModal" },
      lockOutlineIcon(),
      "Lock drive",
    ),
  });
}