Hiyve Components - v1.0.0
    Preparing search index...

    Interface FileSharingDialogProps

    Props for the FileSharingDialog component.

    interface FileSharingDialogProps {
        availableUsers: { userId: string; userName?: string }[];
        files: FileEntry[];
        isSharing?: boolean;
        labels?: {
            cancel?: string;
            noUsers?: string;
            selectUsers?: string;
            share?: string;
            title?: string;
            titlePlural?: string;
        };
        onClose: () => void;
        onShare: (userIds: string[]) => Promise<void>;
        open: boolean;
        renderUserList?: (
            props: {
                availableUsers: { userId: string; userName?: string }[];
                isDisabled: boolean;
                onToggleUser: (userId: string) => void;
                selectedUserIds: Set<string>;
            },
        ) => ReactNode;
    }
    Index

    Properties

    availableUsers: { userId: string; userName?: string }[]

    Available users to share with

    files: FileEntry[]

    Files being shared

    isSharing?: boolean

    Whether sharing is in progress

    labels?: {
        cancel?: string;
        noUsers?: string;
        selectUsers?: string;
        share?: string;
        title?: string;
        titlePlural?: string;
    }

    Custom labels

    onClose: () => void

    Close dialog handler

    onShare: (userIds: string[]) => Promise<void>

    Share handler - receives list of user IDs to share with

    open: boolean

    Whether dialog is open

    renderUserList?: (
        props: {
            availableUsers: { userId: string; userName?: string }[];
            isDisabled: boolean;
            onToggleUser: (userId: string) => void;
            selectedUserIds: Set<string>;
        },
    ) => ReactNode

    Custom render function for the user selection area. When provided, replaces the default checkbox user list. Use this to inject a custom picker (e.g. with tabs, search, grouping).