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;
  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 NameHeader = styled(Header)`
  flex-grow: 1;
`;

const CodeHeader = styled(Header)`
  flex: 0 0 250px;
`;

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

const ActionsHeader = styled(Header)`
  flex: 0 0 80px;
  padding-right: 0;
  justify-content: flex-end;
`;

export { TableHeader, CheckHeader, NameHeader, CodeHeader, ActionsHeader, SelectHeader };
