import * as React from "react" ; import styled from "styled-components" ; import { Chevron } from "@joincivil/elements" ; export interface ChevronAnchorProps extends React . AnchorHTMLAttributes < HTMLAnchorElement > { /** Defaults to <a> tag. */ component ? : React . ComponentType < any > ; to ? : string ; } export const ChevronAnchor = props => React . createElement ( props . component || "a" , { ... props , component : undefined , } , < > { props . children } < Chevron / > < />);