export type ContentModule =
  | 'FEED'
  | 'GROUPS'
  | 'GROUP_POSTS'
  | 'ARTICLES'
  | 'USERS';

export type SearchResultType = 'person' | 'post' | 'group';

export type SearchFilter = 'all' | SearchResultType;

export type SearchResult = {
  id: string;
  module: ContentModule;
  title: string | null;
  excerpt: string | null;
  path: string;
  createdAt: string;
  moduleId: string | null;
  extraData: unknown;
};

export type PanelMode =
  | 'recent'
  | 'empty'
  | 'loading'
  | 'no-results'
  | 'results'
  | 'error';

export type PlaceholderVariant = Extract<
  PanelMode,
  'empty' | 'no-results' | 'error'
>;
