Source

admin-bro/src/frontend/components/app/action-header/action-header-props.tsx

import { ActionJSON, RecordJSON, ResourceJSON } from '../../../interfaces'
import { ActionResponse } from '../../../../backend/actions/action.interface'

/**
 * @memberof ActionHeader
 * @alias ActionHeaderProps
 */
export type ActionHeaderProps = {
  /** Resource for the action */
  resource: ResourceJSON;
  /** Optional record - for _record_ actions */
  record?: RecordJSON;
  /** If given, action header will render Filter button */
  toggleFilter?: () => any;
  /**
   * It indicates if action without a component was performed.
   */
  actionPerformed?: (action: ActionResponse) => any;
  /** An action objet */
  action: ActionJSON;
  /** Optional tag which will be rendered as a {@link Badge} */
  tag?: string;
  /** If set, component wont render actions */
  omitActions?: boolean;
};
SoftwareBrothers

Proudly built and maintained by SoftwareBrothers

Software House with a passion for both JavaScript and TypeScript.

See what we do See what we believe in

Proudly built and maintained by

SoftwareBrothers