-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1980069
commit 04d026c
Showing
2 changed files
with
45 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
import { ImageStore } from "../../store/ImageStore"; | ||
import { Button } from "../ui/button"; | ||
import { ImageStore } from "@/store/ImageStore"; | ||
import "./App.css"; | ||
import { Images } from "./components/images"; | ||
import { ImageDownload } from "./components/images/image-download"; | ||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./components/ui/tabs"; | ||
import { Videos } from "./components/videos"; | ||
|
||
const App = () => { | ||
const { selectedImages } = ImageStore(); | ||
|
||
return ( | ||
<section className="relative min-h-screen"> | ||
<div className="flex justify-between mb-4"> | ||
<Tabs defaultValue="images" className="w-full"> | ||
<TabsList className="grid w-full grid-cols-2"> | ||
<TabsTrigger value="images">Images</TabsTrigger> | ||
<TabsTrigger value="videos">Videos</TabsTrigger> | ||
</TabsList> | ||
<TabsContent value="images"> | ||
<Images /> | ||
{selectedImages.length > 0 && ( | ||
<div className="fixed bottom-4 right-4 z-50"> | ||
<ImageDownload /> | ||
</div> | ||
)} | ||
</TabsContent> | ||
<TabsContent value="videos"> | ||
<Videos /> | ||
</TabsContent> | ||
</Tabs> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default App; |