RocketChat/Rocket.Chat

View on GitHub
packages/uikit-playground/src/Components/DropDown/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { LayoutBlock } from '@rocket.chat/ui-kit';

export type ItemProps = {
  label: string;
  layer: number;
  payload?: readonly LayoutBlock[];
  children?: ReadonlyArray<JSX.Element>;
};

export type ItemBranch = {
  label: string;
  branches?: Item;
  payload?: readonly LayoutBlock[];
};

export type Item = ItemBranch[];