import { Col, Container, FlatList, Row, ScrollView, StyleSystemThemedProps, } from 'components/layout'; import { Checkbox, CheckGroup, CloseFullScreen, CloseThick, Filter, OpenFullScreen } from 'icons'; import { metrics } from 'config'; import { Card, Divider, Fab, Visible, Dropdown, Button, Heading, BackHeader } from 'components'; import { useResponsiveLayout, useRouting } from 'hooks'; import { Notification, NotificationFragment } from 'expo-schema'; import { isNotificationOpenVar } from 'state-management/dialogs'; import { useCallback, useState } from 'react'; import { NavigationRoutes } from 'navigation/enum'; import { Tabs } from 'components/dashboard'; import { Item } from '../item'; const { STYLES } = metrics; const Action = () => { return ( {}} /> ); }; export const List: React.FC = ({ variant, notifications, ...props }) => { const [activeTab, setActiveTab] = useState(0); const isSurface = variant === 'surface'; const { isMobile, height } = useResponsiveLayout(); const { navigateTo, routeSegments, navigateBack } = useRouting(); const isInbox = routeSegments.includes('inbox'); const parsedHeight = height - STYLES.topBarHeight; const width = isSurface ? undefined : STYLES.happeningBarWidth; const px = isSurface ? 's' : undefined; const windowIcon = isInbox ? ( ) : ( ); const closeSidebar = () => { isNotificationOpenVar(false); }; const toggleInbox = useCallback(() => { if (isInbox) { navigateBack(); } else { isNotificationOpenVar(false); navigateTo(NavigationRoutes.Inbox); } }, [isInbox, navigateBack, navigateTo]); const ActionDesktop = () => { return ( } /> } /> } /> ); }; return ( } /> } isAction={true} rightElement={} /> (item as Notification).id} renderItem={(item) => } />