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

    Interface SessionEmptyStateProps

    Props for SessionEmptyState component

    interface SessionEmptyStateProps {
        fileManagerProps?: Partial<FileManagerProps>;
        filterFileType: string;
        icon: ReactNode;
        labels?: Partial<SessionEmptyStateLabels>;
        onCreate: () => void | FileEntry | Promise<void | FileEntry>;
        onFileOpen: (file: FileEntry) => void;
        roomName?: string;
        showCreateButton?: boolean;
        storageKey?: string;
        sx?: SxProps<Theme>;
    }
    Index

    Properties

    fileManagerProps?: Partial<FileManagerProps>

    Additional props forwarded to the inner <FileManager> so the editor-tab empty states can match the look of the main Files tab (consumer-specific row extras, field formatters, thumbnail generators, theme colours, etc.). Values here merge with — and for non-conflicting keys override — SessionEmptyState's defaults (filterFileTypes / onFileOpen / enableDragDrop stay locked since they're integral to the empty-state behaviour).

    filterFileType: string

    File type filter for the file manager list (e.g., 'qa-session', 'polls-session', 'note', 'whiteboard')

    icon: ReactNode

    Icon to display in the empty state

    labels?: Partial<SessionEmptyStateLabels>

    Custom labels for i18n support

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

    Callback when create button is clicked. If the callback returns (or resolves to) a FileEntry, the empty state will open it via onFileOpen automatically — matching the create-and-open flow used by Library-style top-level pages.

    onFileOpen: (file: FileEntry) => void

    Callback when a file is opened from the list

    roomName?: string

    Room name for filtering files to current room. When provided, shows a toggle to filter between room files and all files.

    showCreateButton?: boolean

    Whether to show the create button (e.g., owner-only for polls)

    storageKey?: string

    localStorage key for persisting room filter toggle and sort state

    sx?: SxProps<Theme>

    MUI sx props for the container