import React from "react";
import styled from "styled-components";
import { Header } from "@ax/components/TableList/style";

const SortBy = styled((props) => <Header {...props} />)<{ isActive: boolean }>`
  width: 100%;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
  &:hover {
    color: ${(p) => p.theme.color.interactive01};
  }
`;

const IconsWrapper = styled.div`
  display: flex;
  align-items: center;
  flex-direction: row;
  svg {
    margin-left: 4px;
  }
`;

const InteractiveArrow = styled.div`
  display: flex;
  svg {
    path {
      fill: ${(p) => p.theme.color.interactive01};
    }
  }
`;

export { SortBy, IconsWrapper, InteractiveArrow };
