import { JSX } from "react";

import { HasId } from "./has-id";

export interface CardAction<T extends HasId> {
	title: string;
	action: (model: T) => Promise<T>;
	icon?: JSX.Element;
	variant?: "text" | "outlined" | "contained";
	color?:
		| "error"
		| "primary"
		| "inherit"
		| "secondary"
		| "success"
		| "info"
		| "warning";
}
