import type { ReactNode } from "react"; import { Pressable, type PressableProps } from "react-native"; import { useActionBarFeedbackNegative } from "@assistant-ui/core/react"; export type ActionBarFeedbackNegativeProps = Omit< PressableProps, "onPress" | "children" > & { children: ReactNode | ((props: { isSubmitted: boolean }) => ReactNode); }; export const ActionBarFeedbackNegative = ({ children, ...pressableProps }: ActionBarFeedbackNegativeProps) => { const { submit, isSubmitted } = useActionBarFeedbackNegative(); return ( {typeof children === "function" ? children({ isSubmitted }) : children} ); };