@capgo/cli
Version:
A CLI to upload to capgo servers
20 lines (19 loc) • 594 B
TypeScript
import type { FC } from 'react';
import type { Platform } from '../types.js';
import type { PlatformPickerLayout } from './frame-fit.js';
export type PlatformKeyAction = {
type: 'select';
platform: Platform;
} | {
type: 'confirm';
} | null;
export declare function platformKeyAction(input: string, key: {
leftArrow?: boolean;
rightArrow?: boolean;
return?: boolean;
}): PlatformKeyAction;
export interface PlatformPickerProps {
layout: PlatformPickerLayout;
onSelect: (platform: Platform) => void;
}
export declare const PlatformPicker: FC<PlatformPickerProps>;