Skip to content

The open alternative to Salesforce, designed for AI.

429 B
Raw Blame
import { WidgetType } from '~/generated-metadata/graphql';

export type WidgetContentPadding = 'default' | 'none';

export const getWidgetContentPadding = (
  widgetType: WidgetType,
): WidgetContentPadding => {
  switch (widgetType) {
    case WidgetType.WORKFLOW:
    case WidgetType.WORKFLOW_RUN:
    case WidgetType.WORKFLOW_VERSION:
    case WidgetType.CHAT:
      return 'none';
    default:
      return 'default';
  }
};