bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
41 lines (40 loc) • 1.27 kB
TypeScript
import type { PrimaryFieldType, RepoQueryIn } from "../../..";
import type { MediaFieldSchema } from "../../../media/AppMedia";
import type { TAppMediaConfig } from "../../../media/media-schema";
import { type DropzoneProps } from "./Dropzone";
export type DropzoneContainerProps = {
/**
* The initial items to display
* @default []
*/
initialItems?: MediaFieldSchema[] | false;
/**
* Whether to use infinite scrolling
* @default false
*/
infinite?: boolean;
/**
* If given, the initial media items fetched will be from this entity
* @default undefined
*/
entity?: {
name: string;
id: PrimaryFieldType;
field: string;
};
/**
* The media config
* @default undefined
*/
media?: Pick<TAppMediaConfig, "entity_name" | "storage">;
/**
* Query to filter the media items
*/
query?: RepoQueryIn;
/**
* Whether to use a random filename
* @default false
*/
randomFilename?: boolean;
} & Omit<Partial<DropzoneProps>, "initialItems">;
export declare function DropzoneContainer({ initialItems, media, entity, query, randomFilename, infinite, ...props }: DropzoneContainerProps): import("react/jsx-runtime").JSX.Element;