apprev/components-jsx/MediaGalleryItem.tsx
2025-05-15 07:10:53 -04:00

17 lines
450 B
TypeScript

import type { MediaGalleryItem as MediaGalleryItemComponent } from "oceanic.js";
import { MediaItem } from "./MediaItem";
export interface MediaGalleryItemProps {
url: string;
description?: string;
spoiler?: boolean;
}
export function MediaGalleryItem({ url, description, spoiler }: MediaGalleryItemProps): MediaGalleryItemComponent {
return {
media: <MediaItem url={url} />,
description,
spoiler,
};
}