21 lines
477 B
TypeScript
21 lines
477 B
TypeScript
import useStore from "../../../store/store";
|
|
|
|
const ImageSlider = () => {
|
|
const { currentVilla } = useStore();
|
|
return (
|
|
<div className="flex p-6 gap-2 overflow-x-scroll touch-pan-x">
|
|
{currentVilla &&
|
|
currentVilla.perspectiveWorkings.map((working) => (
|
|
<img
|
|
className="rounded-lg"
|
|
src={working.image}
|
|
alt=""
|
|
key={working.id}
|
|
/>
|
|
))}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default ImageSlider;
|