23 lines
403 B
JavaScript
23 lines
403 B
JavaScript
import React from 'react';
|
|
|
|
import { useDownload } from "../components/use-download";
|
|
|
|
export default function Zipping() {
|
|
|
|
const { handleZip } = useDownload();
|
|
|
|
const images = [
|
|
"image1.jpg",
|
|
"image2.jpg",
|
|
"image3.jpg",
|
|
"image4.jpg",
|
|
"image5.jpg",
|
|
]
|
|
|
|
return (
|
|
<div>
|
|
<button onClick={() => handleZip(images)}>Download</button>
|
|
</div>
|
|
)
|
|
};
|