function BannerMessage()

in packages/storybook8/stories/Concepts/TeamsInterop/ComplianceBanner/snippets/ComplianceBanner.snippet.tsx [136:197]


function BannerMessage(props: { variant: number }): JSX.Element {
  switch (props.variant) {
    case TRANSCRIPTION_STOPPED_STILL_RECORDING:
      return (
        <>
          <b>Transcription has stopped.</b> You are now only recording this meeting.
          <PrivacyPolicy />
        </>
      );
    case RECORDING_STOPPED_STILL_TRANSCRIBING:
      return (
        <>
          <b>Recording has stopped.</b> You are now only transcribing this meeting.
          <PrivacyPolicy />
        </>
      );
    case RECORDING_AND_TRANSCRIPTION_STOPPED:
      return (
        <>
          <b>Recording and transcription are being saved. </b> Recording and transcription have stopped.
          <LearnMore />
        </>
      );
    case RECORDING_AND_TRANSCRIPTION_STARTED:
      return (
        <>
          <b>Recording and transcription have started.</b> By joining, you are giving consent for this meeting to be
          transcribed.
          <PrivacyPolicy />
        </>
      );
    case TRANSCRIPTION_STARTED:
      return (
        <>
          <b>Transcription has started.</b> By joining, you are giving consent for this meeting to be transcribed.
          <PrivacyPolicy />
        </>
      );
    case RECORDING_STOPPED:
      return (
        <>
          <b>Recording is being saved.</b> Recording has stopped.
          <LearnMore />
        </>
      );
    case RECORDING_STARTED:
      return (
        <>
          <b>Recording has started.</b> By joining, you are giving consent for this meeting to be transcribed.
          <PrivacyPolicy />
        </>
      );
    case TRANSCRIPTION_STOPPED:
      return (
        <>
          <b>Transcription is being saved.</b> Transcription has stopped.
          <LearnMore />
        </>
      );
  }
  return <></>;
}