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

    Interface FileSessionEmptyStateConfig

    Configuration for the empty state shown when no file is open (inline variant only).

    interface FileSessionEmptyStateConfig {
        autoCreateOnMount?: boolean;
        fileManagerProps?: Partial<FileManagerProps>;
        filterFileType: string;
        icon: ReactNode;
        labels?: Partial<SessionEmptyStateLabels>;
        onCreate?: () => void | FileEntry | Promise<void | FileEntry>;
        roomName?: string;
        showCreateButton?: boolean;
        storageKey?: string;
    }
    Index

    Properties

    autoCreateOnMount?: boolean

    When true, the host fires onCreate automatically the first time it would otherwise render the empty state — and routes the result through onFileOpen so the editor mounts immediately on a fresh file. Lets a tab open straight into the editor instead of asking the user to click "New" or pick from the file list. Fires at most once per FileSessionHost mount; subsequent file-closes return the user to the regular empty state with the FileManager. Has no effect when onCreate is not provided. Defaults to false.

    fileManagerProps?: Partial<FileManagerProps>

    Additional props forwarded to the inner <FileManager> so the editor-tab empty states match the look of the main Files tab (consumer-specific row extras, field formatters, thumbnail generators, theme colours, etc.). Locked defaults (filterFileTypes, onFileOpen, enableDragDrop) take precedence.

    filterFileType: string

    Resource type used to filter the file list.

    icon: ReactNode

    Icon shown in the empty state header.

    labels?: Partial<SessionEmptyStateLabels>

    Override labels for i18n.

    onCreate?: () => void | FileEntry | Promise<void | FileEntry>

    Called when the user clicks "Create". Omit to hide the button. If the callback returns (or resolves to) a FileEntry, the empty state opens it via onFileOpen automatically — matching the create-and-open flow used by Library-style top-level pages.

    roomName?: string

    Room name to pass through to the embedded FileManager (enables the "this room only" filter toggle). Typically the caller's current room.

    showCreateButton?: boolean

    Whether the create button should be rendered at all. Defaults to !!onCreate.

    storageKey?: string

    localStorage key for persisting the room filter toggle + sort state.