Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

620 B
Raw Blame
import { CompanionSheet } from './CompanionSheet';
import type { ComposerSheetProps } from './ComposerSheet';
import type { MainWindowAction } from '@/components/MobilePrimitives';

type FormAction = MainWindowAction & { onPress(): void };

export type FormSheetProps = Pick<ComposerSheetProps,
  'visible' | 'title' | 'onClose' | 'onClosed' | 'preventDismiss' | 'children' | 'testID'
> & {
  leadingAction: FormAction;
  trailingAction: FormAction;
  onShow?(): void;
};

export function FormSheet(props: FormSheetProps) {
  return <CompanionSheet {...props} initialSnap="full" keyboardAvoidingBehavior="padding" />;
}