@wandelbots/wandelbots-js-react-components
Version:
React UI toolkit for building applications on top of the Wandelbots platform
34 lines • 1.47 kB
TypeScript
import type { ComponentType } from "react";
import { RobotSetupReadinessState } from "./RobotSetupReadinessIndicator";
export interface RobotListItemProps {
/** The name of the robot */
robotName: string;
/** The type/model of the robot (will try to derive from nova if not provided) */
robotType?: string;
/** The current setup readiness state of the robot */
setupState: RobotSetupReadinessState;
/**
* Component to render for the precondition indicator.
* Defaults to RobotSetupReadinessIndicator.
* Pass null or undefined to hide the indicator.
*/
PreconditionComponent?: ComponentType<{
setupState: RobotSetupReadinessState;
}> | null;
/** Additional CSS class name */
className?: string;
}
/**
* A list item component that displays robot information and setup readiness state.
*
* Features:
* - Shows robot name, type, and customizable precondition component
* - Color-coded icon based on readiness state (robot icon for ready, warning for issues)
* - Styled with consistent border, background, and spacing
* - Responsive layout with proper spacing and alignment
* - Flexible precondition component that can be customized or hidden
*/
export declare const RobotListItem: (({ robotName, robotType, setupState, PreconditionComponent, className, }: RobotListItemProps) => import("react/jsx-runtime").JSX.Element) & {
displayName: string;
};
//# sourceMappingURL=RobotListItem.d.ts.map