import { cn } from "@/lib/utils"
interface NoteImagesProps {
images: string[]
title?: string | null
}
export function NoteImages({ images, title }: NoteImagesProps) {
if (!images || images.length === 0) return null
return (
{images.length === 1 ? (

) : images.length === 2 ? (
{images.map((img, idx) => (

))}
) : images.length === 3 ? (

{images.slice(1).map((img, idx) => (

))}
) : (
{images.slice(0, 4).map((img, idx) => (

))}
{images.length > 4 && (
+{images.length - 4}
)}
)}
)
}