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;
  min-height: 40px;
  border-bottom: ${(p) => (p.isScrolling ? `1px solid ${p.theme.color.uiLine};` : "")};
`;

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

const NameWrapper = styled(Header)`
  width: 400px;
  position: relative;
`;

const PermissionsWrapper = styled(Header)`
  flex-grow: 1;
  display: flex;
  justify-content: center;
  position: relative;
`;

const ActionsHeader = styled(Header)<{ isSiteView: boolean }>`
  display: flex;
  width: 104px;
  justify-content: end;
  padding-right: 0;
`;

const UsersWrapper = styled(Header)`
  width: 300px;
  display: flex;
  justify-content: center;
  position: relative;
`;

export { TableHeader, CheckHeader, NameWrapper, PermissionsWrapper, ActionsHeader, UsersWrapper };
