1 import type React from 'react';
3 import type { SORT_DIRECTION } from '@proton/shared/lib/constants';
5 export interface DragMoveControls {
6 handleDragOver: (event: React.DragEvent<HTMLTableRowElement>) => void;
7 handleDrop: (e: React.DragEvent<HTMLTableRowElement>) => void;
8 handleDragLeave: () => void;
9 handleDragEnter: (e: React.DragEvent<HTMLTableRowElement>) => void;
11 setDragging: (value: boolean) => void;
12 isActiveDropTarget: boolean;
13 selectedItems: FileBrowserBaseItem[];
16 export interface SortParams<T> {
18 sortOrder: SORT_DIRECTION;
21 export interface ContextMenuProps {
22 anchorRef: React.RefObject<HTMLElement>;
23 children?: React.ReactNode;
35 export interface FileBrowserBaseItem {
39 isInvitation?: boolean;
41 itemRowStyle?: React.CSSProperties;
44 export enum HeaderCellsPresets {
49 export interface ListViewHeaderItem {
50 type: string | HeaderCellsPresets;
52 props?: React.HTMLProps<HTMLDivElement>;
56 export type BrowserItemId = string;