import React from 'react'; import { StyleSheet, View } from 'react-native'; import Animated, { ZoomIn, ZoomOut } from 'react-native-reanimated'; import { useTheme } from '../../contexts/themeContext/ThemeContext'; import { Down } from '../../icons/arrow-up'; import { primitives } from '../../theme'; import { BadgeNotification } from '../ui'; import { Button } from '../ui/Button'; export type ScrollToBottomButtonProps = { /** onPress handler */ onPress: () => void; /** If we should show the notification or not */ showNotification?: boolean; unreadCount?: number; }; export const ScrollToBottomButton = (props: ScrollToBottomButtonProps) => { const { onPress, showNotification = true, unreadCount } = props; const { theme: { semantics }, } = useTheme(); if (!showNotification) { return null; } return (