import { DEFAULT_IMAGES } from "~/config/paths";

export const handleLightboxImageError = (event: Event): void => {
    const target = event.target as HTMLImageElement;
    target.src = DEFAULT_IMAGES.PROJECT;
};

export const handleImageError = (event: Event): void => {
    const target = event.target as HTMLImageElement;
    target.src = DEFAULT_IMAGES.PROJECT;
};

export const handleIconError = (event: Event): void => {
    const target = event.target as HTMLImageElement;
    target.src = DEFAULT_IMAGES.ICON;
};