import { MolecularComponentConfig } from "../../../theme/src/types"; import { BoxProps } from "../../atoms/box/box"; import { SpinnerProps } from "../../atoms/spinner/spinner"; import { ImageProps } from "./image"; export type ImageAtoms = { container: BoxProps; image: ImageProps; previewImage: ImageProps; fallbackImage: ImageProps; spinner: SpinnerProps; }; const ImageConfig: MolecularComponentConfig = { parts: ["container", "image", "previewImage", "fallbackImage", "spinner"], baseStyle: { container: { borderRadius: "m", backgroundColor: "neutral.100", }, image: { isCached: true, loaderType: "spinner", sourceDelay: 0, overlayTransitionDuration: 300, tint: "dark", }, spinner: { color: "neutral.400", }, }, }; export default ImageConfig;