mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
reorganization
This commit is contained in:
1 parent
11977c48ef
commit
2a6429c446
24 files changed
+43
-85
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import React from "react";
|
||||
|
||||
import Image from "./Image";
|
||||
|
||||
export const ImageDisplay = ({ visible, images, removeImage, small }) => {
|
||||
if (!visible || !images || images.length === 0) return null;
|
||||
|
||||
const styles = { margin: small ? "2px 0px" : "2px 15px" };
|
||||
|
||||
return (
|
||||
<div style={styles}>
|
||||
{images.map((image) => (
|
||||
<Image
|
||||
key={image.id}
|
||||
link={image.link}
|
||||
handleClick={removeImage ? () => removeImage(image.id) : null}
|
||||
small={small}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
ImageDisplay.defaultProps = {
|
||||
removeImage: null,
|
||||
small: false,
|
||||
};
|
||||
|
||||
export default ImageDisplay;
|
||||
Reference in new issue
Block a user