RocketChat/Rocket.Chat

View on GitHub
packages/fuselage-ui-kit/src/stories/payloads/conditional.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type * as UiKit from '@rocket.chat/ui-kit';

export const conditional: readonly UiKit.LayoutBlock[] = [
  {
    type: 'conditional',
    when: {
      engine: ['rocket.chat'],
    },
    render: [
      {
        type: 'section',
        text: {
          type: 'plain_text',
          text: 'This is a plain text section block.',
          emoji: true,
        },
      },
    ],
  },
] as const;