import PaymentsTable from './PaymentsTable'; import Results from './Results'; import Validation from './Validation'; import Background from '@/Components/Layout/Background'; import { useErrors, useStore } from '@/stores/hooks'; import { min } from '@/styles/mq'; import { observer } from 'mobx-react-lite'; import { useEffect, useState } from 'react'; import styled from 'styled-components'; import { Badge, Tabs } from 'ui/elements'; const outputTabs = [PaymentsTable, Results, Validation]; const items = outputTabs.map(({ Component, id, title }) => { let Label = () => title; if (id === 'validation') { Label = observer(() => { const { hasErrors } = useErrors(); return ( {title} ); }); } return { children: , key: id, label: