chore: snapshot before performance optimization
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { cn } from "@/lib/utils"
|
||||
import { cn, asArray } from "@/lib/utils"
|
||||
|
||||
interface NoteImagesProps {
|
||||
images: string[]
|
||||
title?: string | null
|
||||
}
|
||||
|
||||
export function NoteImages({ images, title }: NoteImagesProps) {
|
||||
if (!images || images.length === 0) return null
|
||||
export function NoteImages({ images: rawImages, title }: NoteImagesProps) {
|
||||
const images = asArray<string>(rawImages)
|
||||
if (images.length === 0) return null
|
||||
|
||||
return (
|
||||
<div className={cn(
|
||||
|
||||
Reference in New Issue
Block a user