// @ts-nocheck import React from 'react'; import { Alignment, Navbar, NavbarGroup } from '@blueprintjs/core'; import { DashboardViewsTabs } from '@/components'; import { compose, transfromViewsToTabs } from '@/utils'; import { useCreditNoteListContext } from './CreditNotesListProvider'; import withCreditNotes from './withCreditNotes'; import withCreditNotesActions from './withCreditNotesActions'; /** * Credit Note views tabs. */ function CreditNotesViewTabs({ // #withCreditNotes creditNoteCurrentView, // #withCreditNotesActions setCreditNotesTableState, }) { // Credit note list context. const { CreditNotesView } = useCreditNoteListContext(); const tabs = transfromViewsToTabs(CreditNotesView); // Handle tab change. const handleTabsChange = (viewSlug) => { setCreditNotesTableState({ viewSlug }); }; return ( ); } export default compose( withCreditNotesActions, withCreditNotes(({ creditNoteTableState }) => ({ creditNoteCurrentView: creditNoteTableState.viewSlug, })), )(CreditNotesViewTabs);