import elementsRender from '../../config/elements-render';
import { id, title } from './config';
import PaymentsParams from './PaymentsParams';
import PaymentsTable from './PaymentsTable';
import { Box, Flex } from 'ui/grid';

function Payments() {
  const radioGraphType = elementsRender.radioGraphType.render();

  return (
    <Flex flexDirection="column">
      <Box
        sx={{
          display: 'grid',
          gap: '10px',
          gridTemplateColumns: ['1fr', '1fr', '1fr 1fr'],
        }}
      >
        {radioGraphType}
        <PaymentsParams />
      </Box>
      <PaymentsTable />
    </Flex>
  );
}

export default {
  Component: Payments,
  id,
  title,
};
