All files / extensions/default/src/types AppTypes.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                         
/* eslint-disable @typescript-eslint/no-namespace */
import type { ComponentType } from 'react';
 
declare global {
  namespace AppTypes {
    interface Customizations {
      /**
       * The right side of the viewer header's menu bar, ahead of the settings
       * menu. `items` is an ordered list of components — undo/redo and patient
       * info by default — each rendered by `ViewerHeader` in its own separated
       * slot, so reordering the array reorders the header and dropping an entry
       * removes it (the
       * `@ohif/extension-default.customizationModule.hideHeaderUndoRedo` module
       * does exactly that). Items take no props and may use hooks; one that
       * renders `null` collapses its slot.
       */
      'ohif.headerRightSide': { items: ComponentType[] };
    }
  }
}