mirror of
https://github.com/netzbegruenung/groupfolders.git
synced 2024-05-03 09:53:41 +02:00
98e57afbed
Fixes #140 Signed-off-by: Robin Appelman <robin@icewind.nl>
17 lines
378 B
TypeScript
17 lines
378 B
TypeScript
import * as React from 'react';
|
|
|
|
export interface SortArrowProps {
|
|
name: string;
|
|
value: string;
|
|
direction: number;
|
|
}
|
|
|
|
export function SortArrow({name, value, direction}: SortArrowProps) {
|
|
if (name === value) {
|
|
return (<span className='sort_arrow'>
|
|
{direction < 0 ? '▼' : '▲'}
|
|
</span>);
|
|
} else {
|
|
return <span/>;
|
|
}
|
|
} |