plane/web/constants/page.ts
2024-04-29 18:24:58 +05:30

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" },
];