import Image from "next/image"; import { Trash2 } from 'lucide-react'; import Link from "next/link"; import { Button } from "@/components/ui/button"; import React from "react"; // Sample data for recent designs const recentDesigns = [ { icon: "/recent-image-1.png", title: "Good morning Gabe ...", }, { icon: "/recent-image-2.png", title: "Daphne's first eBook...", }, { icon: "/recent-image-3.png", title: "Story of my life (Story...", }, { icon: "/recent-image-4.png", title: "Good morning Gabe ...", }, { icon: "/recent-image-5.png", title: "A fantastic saga, the...", }, ]; /** * RecentDesign Component * Displays a sidebar with recent designs and a trash section */ export default function RecentDesign({ drawerOpen }: { drawerOpen?: boolean, setDrawerOpen?: (open: boolean) => void }) { // Mobile drawer styles const mobileDrawer = drawerOpen !== undefined; return (
Wodey logo
{/* Recent Designs Header */}
Recent designs
{recentDesigns.map((design, idx) => (
icon
{/* Design Title */} {design.title} {/* Action Buttons */} {/*
*/}
))}
{/* Trash Section pinned to the very bottom */} ); }