import { X } from 'lucide-react' import { Button } from '@/components/ui/button' interface PhotoPreviewProps { photos: File[] onRemove: (index: number) => void } export function PhotoPreview({ photos, onRemove }: PhotoPreviewProps) { if (photos.length === 0) return null return (
{photos.map((file, i) => { const url = URL.createObjectURL(file) return (
{`Photo
) })}
) }