import { Pressable, type PressableProps } from "react-native"; import { useThreadListItemUnarchive } from "@assistant-ui/core/react"; export type ThreadListItemUnarchiveProps = Omit< PressableProps, "onPress" | "children" > & { children: PressableProps["children"]; }; export const ThreadListItemUnarchive = ({ children, ...pressableProps }: ThreadListItemUnarchiveProps) => { const { unarchive } = useThreadListItemUnarchive(); return ( {children} ); };