StartScreen.d.ts 718 B

1234567891011121314151617
  1. /// <reference types="react" />
  2. import type { ScreenStateProps } from './ScreenState';
  3. import type { InternalDocSearchHit } from './types';
  4. export declare type StartScreenTranslations = Partial<{
  5. recentSearchesTitle: string;
  6. noRecentSearchesText: string;
  7. saveRecentSearchButtonTitle: string;
  8. removeRecentSearchButtonTitle: string;
  9. favoriteSearchesTitle: string;
  10. removeFavoriteSearchButtonTitle: string;
  11. }>;
  12. declare type StartScreenProps = Omit<ScreenStateProps<InternalDocSearchHit>, 'translations'> & {
  13. hasCollections: boolean;
  14. translations?: StartScreenTranslations;
  15. };
  16. export declare function StartScreen({ translations, ...props }: StartScreenProps): JSX.Element | null;
  17. export {};