Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
cbd1f2b38e
commit
af033b6562
@@ -0,0 +1,19 @@
|
||||
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)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user