"use client" import { Cloud, GitBranch, Palette, Zap } from "lucide-react" interface ExampleCardProps { icon: React.ReactNode title: string description: string onClick: () => void } function ExampleCard({ icon, title, description, onClick }: ExampleCardProps) { return ( ) } export default function ExamplePanel({ setInput, setFiles, }: { setInput: (input: string) => void setFiles: (files: File[]) => void }) { const handleReplicateFlowchart = async () => { setInput("Replicate this flowchart.") try { const response = await fetch("/example.png") const blob = await response.blob() const file = new File([blob], "example.png", { type: "image/png" }) setFiles([file]) } catch (error) { console.error("Error loading example image:", error) } } const handleReplicateArchitecture = async () => { setInput("Replicate this in aws style") try { const response = await fetch("/architecture.png") const blob = await response.blob() const file = new File([blob], "architecture.png", { type: "image/png", }) setFiles([file]) } catch (error) { console.error("Error loading architecture image:", error) } } return (
Describe what you want to create or upload an image to replicate
Quick Examples
Examples are cached for instant response