Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
20 lines
499 B
TypeScript
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)}
|
|
/>
|
|
);
|
|
}
|