/* Copyright 2026 Marimo. All rights reserved. */ import { ImgComparisonSlider } from "@img-comparison-slider/react"; import React from "react"; export interface ImageComparisonData { beforeSrc: string; afterSrc: string; value: number; direction: "horizontal" | "vertical"; width?: string; height?: string; } const ImageComparisonComponent: React.FC = ({ beforeSrc, afterSrc, value, direction, width, height, }) => { const containerStyle: React.CSSProperties = { width: width || "100%", height: height || (direction === "vertical" ? "400px" : "auto"), maxWidth: "100%", }; return (
Before After
); }; export default ImageComparisonComponent;