"use client" import type { ReactNode } from "react" import { cn } from "../../../lib/utils" import { CardDescription, CardFooter } from "../../ui/card" import { Skeleton } from "../../ui/skeleton" import { SettingsActionButton } from "./settings-action-button" import type { SettingsCardClassNames } from "./settings-card" export interface SettingsCardFooterProps { className?: string classNames?: SettingsCardClassNames actionLabel?: ReactNode disabled?: boolean instructions?: ReactNode isPending?: boolean isSubmitting?: boolean optimistic?: boolean variant?: "default" | "destructive" action?: () => Promise | unknown } export function SettingsCardFooter({ className, classNames, actionLabel, disabled, instructions, isPending, isSubmitting, variant, action }: SettingsCardFooterProps) { return ( {isPending ? ( <> {instructions && ( )} {actionLabel && ( )} ) : ( <> {instructions && ( {instructions} )} {actionLabel && ( )} )} ) }