import React, {useState} from 'react'; import Header from '@components/Header'; import AllNotifications from '@screens/notifications/AllNotifications'; import ActivityLogs from '@screens/notifications/ActivityLogs'; import { Container, Wrapper, Tabs, Tab, TabText, WrapperContentStyle, } from '@styles/screens/notifications'; const Notifications = () => { const [activeTab, setTab] = useState(1); return (
setTab(1)} active={activeTab === 1} testID="notif"> All Notifications setTab(2)} active={activeTab === 2} testID="actLog"> Activity logs {activeTab === 1 && } {activeTab === 2 && } ); }; export default Notifications;