interface ListStateProps

Passed to ListState by the feeds of the index and the lists of a profile.

Type Parameters

L extends object

Properties

isEmpty: (loaded: L) => boolean

Called only once state is loaded.

empty: ReactNode

Shown when isEmpty, usually a .empty-state or .index-status line.

children: (loaded: L) => ReactNode

Called only once state is loaded and not empty.

Usage

import { type ListStateProps } from "src/components/shared/ListState.tsx";