import { HTMLAttributes, ImgHTMLAttributes, ReactElement } from "react"; import { SpaceProps } from "styled-system"; import { BoxProps } from "../Box"; export interface WrapperProps extends SpaceProps, HTMLAttributes { width: number; height: number; } export interface ImageProps extends ImgHTMLAttributes, SpaceProps { width: number; height: number; wrapperProps?: WrapperProps; fallbackSrc?: string; } export interface BackgroundImageProps extends ImageProps { loadingPlaceholder?: ReactElement; } export const variants = { DEFAULT: "default", INVERTED: "inverted", } as const; export type Variant = (typeof variants)[keyof typeof variants]; export interface TokenPairImageProps extends BoxProps { primarySrc: string; secondarySrc: string; variant?: Variant; height: number; width: number; primaryImageProps?: Omit; secondaryImageProps?: Omit; }