import PaymentsTable from './PaymentsTable';
import Results from './Results';
import Validation from './Validation';
import Background from '@/Components/Layout/Background';
import { min } from '@/styles/mq';
import styled from 'styled-components';
import Tabs from 'ui/elements/layout/Tabs';

const outputTabs = [PaymentsTable, Results, Validation];

const Wrapper = styled(Background)`
  padding: 4px 10px;
  min-height: 200px;

  ${min('laptop')} {
    padding: 4px 18px;
    min-height: 641px;
  }
`;

function Output() {
  return (
    <Wrapper>
      <Tabs>
        {outputTabs.map(({ id, title, Component }) => (
          <Tabs.TabPane tab={title} key={id}>
            <Component />
          </Tabs.TabPane>
        ))}
      </Tabs>
    </Wrapper>
  );
}

export default Output;
