mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 06:04:55 -06:00
12 lines
274 B
JavaScript
12 lines
274 B
JavaScript
import type { OrderBy } from '../constants/OrderByConstants';
|
|
|
|
export const getOrderbyText = (orderby: Orderby) => {
|
|
switch (orderby) {
|
|
case 'quantity':
|
|
return 'Quantity';
|
|
case 'lastupdated':
|
|
return 'Most Recently Updated';
|
|
default:
|
|
return 'Distance';
|
|
}
|
|
};
|