"use client"; import type { ComponentRenderProps } from "./types"; import { baseClass, getCustomClass } from "./utils"; export function Button({ element }: ComponentRenderProps) { const { props } = element; const customClass = getCustomClass(props); const variant = props.variant as string; const label = props.label as string; const actionText = (props.actionText as string) || label; const btnClass = variant === "danger" ? "bg-red-500 text-white" : variant === "secondary" ? "bg-card border border-border text-foreground" : "bg-foreground text-background"; return ( ); }