RocketChat/Rocket.Chat

View on GitHub
packages/fuselage-ui-kit/src/utils/BlockProps.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { Box } from '@rocket.chat/fuselage';
import type * as UiKit from '@rocket.chat/ui-kit';
import type { ComponentProps, ReactElement } from 'react';

export type BlockProps<B extends UiKit.Block> = {
  className?: ComponentProps<typeof Box>['className'];
  block: B;
  context: UiKit.BlockContext;
  index: number;
  surfaceRenderer: UiKit.SurfaceRenderer<ReactElement>;
};