import styled from 'styled-components'

const TableBlock = styled.div`
  display: flex;
  flex-direction: column;
  gap: ${({gap}) => gap ? gap : '3px'};
  width: 100%;
  
`
TableBlock.Row = styled.div`
  width: 100%;
  //border-bottom: 1px solid #333;
  background-color: #d2d2d26b;
  box-sizing: border-box;
  display: flex;
  border-radius: 10px;
  padding: 5px;
  
  flex-direction: column;
  gap: ${({gap})=> gap ? gap : '3px'};
  .child{
    width: 100%;
  }
`
TableBlock.RowInset = styled.div`
  ${({blockType}) => blockType === 'row' ? {
    display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: '5px'
  } : {
    display: 'flex', flexDirection: 'column'
  }}
  .title {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: initial;
    margin: 0;
    padding: 0;
  }

  .inputArea {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
`



export default TableBlock
