import { Header } from "@ax/components/TableList/style";

import styled from "styled-components";

const TableHeader = styled.div<{ isScrolling?: boolean }>`
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  // padding: ${(p) => p.theme.spacing.m};
  border-bottom: ${(p) => (p.isScrolling ? `1px solid ${p.theme.color.uiLine};` : "")};
  min-height: 40px;
`;

const CheckHeader = styled(Header)`
  padding-left: ${(p) => p.theme.spacing.m};
  width: 32px;
`;

const NameWrapper = styled(Header)`
  flex-grow: 1;
  position: relative;
  padding-left: 0;
`;

const ActionsHeader = styled(Header)`
  flex: 0 0 64px;
  padding-right: 0;
`;

const TypeHeader = styled(Header)`
  flex: 0 0 215px;
  justify-content: center;
  padding: 0;
`;

const UpdateHeader = styled(Header)`
  flex: 0 0 170px;
  justify-content: center;
  padding: 0;
`;

const StateHeader = styled(Header)`
  flex: 0 0 85px;
  justify-content: center;
`;

const LangHeader = styled(Header)`
  flex: 0 0 115px;
  justify-content: center;
`;

export { TableHeader, CheckHeader, NameWrapper, ActionsHeader, TypeHeader, UpdateHeader, StateHeader, LangHeader };
