Axinom Mosaic Libraries
    Preparing search index...

    Function StatusView

    • Renders a status as an icon and a text. The presentation of every value is declared through the statuses map, which can be keyed by a string enum.

      Type Parameters

      • T extends string = string

      Parameters

      Returns Element | null

      <StatusView
      value={encodingState}
      statuses={{
      [EncodingState.Ready]: {
      label: 'Ready',
      icon: IconName.Success,
      color: 'var(--mosaic-success)',
      },
      }}
      />