blob: 0c08408dffd541ef69bdfdb13dff4a660e49b463 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
import * as React from 'react';
import styled from 'styled-components';
import { colors } from '../../config.json';
import * as Cell from './Cell';
interface IProps {
up: boolean;
onClick?: (event: React.MouseEvent) => void;
className?: string;
}
const Icon = styled(Cell.Icon)({
flex: 0,
alignSelf: 'stretch',
justifyContent: 'center',
});
export default function ChevronButton(props: IProps) {
return (
<Icon
tintColor={colors.white80}
tintHoverColor={colors.white}
onClick={props.onClick}
source={props.up ? 'icon-chevron-up' : 'icon-chevron-down'}
height={24}
width={24}
className={props.className}
/>
);
}
|