bknd
Version:
Lightweight Firebase/Supabase alternative built to run anywhere — incl. Next.js, React Router, Astro, Cloudflare, Bun, Node, AWS Lambda & more.
16 lines (15 loc) • 1.15 kB
TypeScript
import { type ReactNode } from "react";
import type { DropzoneRenderProps, FileState } from "../../../ui/elements";
export declare const DropzoneInner: ({ wrapperRef, inputProps, showPlaceholder, actions: { uploadFile, deleteFile, openFileInput }, dropzoneProps: { placeholder, flow }, onClick, footer, }: DropzoneRenderProps) => import("react/jsx-runtime").JSX.Element;
type ReducedFile = Pick<FileState, "body" | "type" | "path" | "name" | "size">;
export type PreviewComponentProps = {
file: ReducedFile;
fallback?: (props: {
file: ReducedFile;
}) => ReactNode;
className?: string;
onClick?: () => void;
onTouchStart?: () => void;
};
export declare const PreviewWrapperMemoized: import("react").MemoExoticComponent<({ file, fallback, ...props }: PreviewComponentProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined>;
export {};