mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
35 lines
828 B
TypeScript
35 lines
828 B
TypeScript
import { Globe2, Lock, LucideIcon } from "lucide-react";
|
|
// types
|
|
import { TPageFiltersSortKey, TPageFiltersSortBy } from "@plane/types";
|
|
|
|
export enum EPageAccess {
|
|
PUBLIC = 0,
|
|
PRIVATE = 1,
|
|
}
|
|
|
|
export const PAGE_ACCESS_SPECIFIERS: {
|
|
key: EPageAccess;
|
|
label: string;
|
|
icon: LucideIcon;
|
|
}[] = [
|
|
{ key: EPageAccess.PUBLIC, label: "Public", icon: Globe2 },
|
|
{ key: EPageAccess.PRIVATE, label: "Private", icon: Lock },
|
|
];
|
|
|
|
export const PAGE_SORTING_KEY_OPTIONS: {
|
|
key: TPageFiltersSortKey;
|
|
label: string;
|
|
}[] = [
|
|
{ key: "name", label: "Name" },
|
|
{ key: "created_at", label: "Date created" },
|
|
{ key: "updated_at", label: "Date modified" },
|
|
];
|
|
|
|
export const PAGE_SORT_BY_OPTIONS: {
|
|
key: TPageFiltersSortBy;
|
|
label: string;
|
|
}[] = [
|
|
{ key: "asc", label: "Ascending" },
|
|
{ key: "desc", label: "Descending" },
|
|
];
|