import ImageSelection, { type IImageSelectionProps } from "./ImageSelection";
import ScrollableSelection, { type IScrollableSelectionProps } from "./ScrollableSelection";

const VisualUniqueSelection = (props: IImageSelectionProps & IScrollableSelectionProps): JSX.Element => {
	const { elementUniqueSelection = false } = props;
	const Component = elementUniqueSelection ? ScrollableSelection : ImageSelection;

	return <Component {...props} />;
};

export default VisualUniqueSelection;
