Files
mylegal-stage-law/src/components/justice-icon.tsx
T
2026-04-18 22:48:48 +00:00

20 lines
499 B
TypeScript

import justiceImg from "@/assets/justice-icon.png";
import { cn } from "@/lib/utils";
interface JusticeIconProps {
className?: string;
/** When true, inverts the image to render white (for dark backgrounds). */
invert?: boolean;
alt?: string;
}
export function JusticeIcon({ className, invert = false, alt = "Lady Justice" }: JusticeIconProps) {
return (
<img
src={justiceImg}
alt={alt}
className={cn("object-contain", invert && "invert", className)}
/>
);
}