"use client"; import { ActionButton, type ActionButtonProps, } from "@suphark/ui/components/shared/button/base/action-button"; import { useUiText } from "@suphark/ui/components/shared/ui-text"; import type * as React from "react"; import { ActionConfirm } from "../semantic-icons"; interface ConfirmButtonProps extends ActionButtonProps { label?: React.ReactNode; } export function ConfirmButton({ children, icon, label, type = "button", ...props }: ConfirmButtonProps) { const text = useUiText(); return ( } {...props}> {children ?? label ?? text.confirm ?? "ยืนยัน"} ); }