f5203e0466
Strip markdown formatting (bold, italic, headers, code, links, lists) from LLM responses before sending via iMessage. Add scheduled messages feature with CRUD API, background scheduler loop, and admin frontend panel. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
924 B
TypeScript
28 lines
924 B
TypeScript
import { cva, type VariantProps } from "class-variance-authority";
|
|
import { cn } from "../../lib/utils";
|
|
|
|
const badgeVariants = cva(
|
|
"inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-xs font-medium transition-colors",
|
|
{
|
|
variants: {
|
|
variant: {
|
|
default: "bg-leaf-pale text-leaf-dark border border-leaf-light/50",
|
|
amber: "bg-amber-pale text-amber-glow border border-amber-soft/40",
|
|
muted: "bg-sand-light/60 text-warm-gray border border-sand/40",
|
|
destructive: "bg-red-50 text-red-600 border border-red-200/50",
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
variant: "default",
|
|
},
|
|
},
|
|
);
|
|
|
|
export interface BadgeProps
|
|
extends React.HTMLAttributes<HTMLDivElement>,
|
|
VariantProps<typeof badgeVariants> {}
|
|
|
|
export const Badge = ({ className, variant, ...props }: BadgeProps) => {
|
|
return <div className={cn(badgeVariants({ variant }), className)} {...props} />;
|
|
};
|