import React, { useMemo } from 'react'; import { Pressable, StyleSheet } from 'react-native'; import { useComponentsContext } from '../../contexts/componentsContext/ComponentsContext'; import { useTheme } from '../../contexts/themeContext/ThemeContext'; import { primitives } from '../../theme'; export type StopMessageStreamingButtonProps = { /** Called when the button is pressed. */ onPress?: () => void; }; export const StopMessageStreamingButton = (props: StopMessageStreamingButtonProps) => { const { onPress } = props; const { icons } = useComponentsContext(); const { theme: { semantics, messageComposer: { stopMessageStreamingButton, stopMessageStreamingIcon }, }, } = useTheme(); const styles = useStyles(); return ( ); }; const useStyles = () => { const { theme: { semantics }, } = useTheme(); return useMemo( () => StyleSheet.create({ stopStreamingButton: { borderWidth: 1, borderRadius: primitives.radiusMax, borderColor: semantics.accentPrimary, }, }), [semantics], ); }; StopMessageStreamingButton.displayName = 'StopMessageStreamingButton{messageComposer}';