2024-06-27 14:40:14 +05:30
|
|
|
import { Globe2, Lock, LucideIcon } from "lucide-react";
|
|
|
|
|
import { TViewFiltersSortBy, TViewFiltersSortKey } from "@plane/types";
|
|
|
|
|
|
2024-06-25 18:21:30 +05:30
|
|
|
export enum EViewAccess {
|
|
|
|
|
PRIVATE,
|
|
|
|
|
PUBLIC,
|
|
|
|
|
}
|
2024-06-27 14:40:14 +05:30
|
|
|
|
|
|
|
|
export const VIEW_ACCESS_SPECIFIERS: {
|
|
|
|
|
key: EViewAccess;
|
|
|
|
|
label: string;
|
|
|
|
|
icon: LucideIcon;
|
|
|
|
|
}[] = [
|
|
|
|
|
{ key: EViewAccess.PUBLIC, label: "Public", icon: Globe2 },
|
|
|
|
|
{ key: EViewAccess.PRIVATE, label: "Private", icon: Lock },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const VIEW_SORTING_KEY_OPTIONS: {
|
|
|
|
|
key: TViewFiltersSortKey;
|
|
|
|
|
label: string;
|
|
|
|
|
}[] = [
|
|
|
|
|
{ key: "name", label: "Name" },
|
|
|
|
|
{ key: "created_at", label: "Date created" },
|
|
|
|
|
{ key: "updated_at", label: "Date modified" },
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const VIEW_SORT_BY_OPTIONS: {
|
|
|
|
|
key: TViewFiltersSortBy;
|
|
|
|
|
label: string;
|
|
|
|
|
}[] = [
|
|
|
|
|
{ key: "asc", label: "Ascending" },
|
|
|
|
|
{ key: "desc", label: "Descending" },
|
|
|
|
|
];
|