38 lines
813 B
JavaScript
38 lines
813 B
JavaScript
import React from 'react';
|
|
|
|
import Colors from './colors';
|
|
import Rotate from './rotate';
|
|
import calcFill from './fill';
|
|
|
|
export default ({
|
|
fill = null,
|
|
light = false,
|
|
disabled = false,
|
|
direction = 'down',
|
|
style = {},
|
|
...rest
|
|
}) => (
|
|
<Colors white text grey>
|
|
{colors => (
|
|
<Rotate direction={direction}>
|
|
{({ style: rotateStyle }) => (
|
|
<svg
|
|
width="8"
|
|
height="2"
|
|
viewBox="0 0 8 2"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
style={{ ...style, ...rotateStyle }}
|
|
{...rest}
|
|
>
|
|
<path
|
|
fill={calcFill({ fill, disabled, light, colors })}
|
|
d="M0 0h8v2H0z"
|
|
fillRule="evenodd"
|
|
/>
|
|
</svg>
|
|
)}
|
|
</Rotate>
|
|
)}
|
|
</Colors>
|
|
);
|