import styled from "styled-components"; import React, { FC } from "react"; import { rem } from "polished"; const ArrowIcon: FC = (props) => ( ); export const Arrow = styled(ArrowIcon)` flex-shrink: 0; width: ${rem(10)}; height: ${rem(10)}; margin-right: ${(p) => p.theme.space[2]}; color: ${(p) => p.theme.colors.text.base}; transform: rotate(0deg); transition: transform 100ms ease; &[data-active="true"] { transform: rotate(90deg); } `;