Initial commit
This commit is contained in:
30
src/types/index.ts
Normal file
30
src/types/index.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Files module types
|
||||
*/
|
||||
|
||||
export type ViewMode = 'grid' | 'list' | 'details'
|
||||
|
||||
export type SortField = 'label' | 'size' | 'modifiedOn' | 'createdOn' | 'mime'
|
||||
|
||||
export type SortOrder = 'asc' | 'desc'
|
||||
|
||||
export interface ViewSettings {
|
||||
mode: ViewMode
|
||||
sortField: SortField
|
||||
sortOrder: SortOrder
|
||||
showHidden: boolean
|
||||
}
|
||||
|
||||
export interface BreadcrumbItem {
|
||||
id: string
|
||||
label: string
|
||||
isRoot: boolean
|
||||
}
|
||||
|
||||
export interface ContextMenuAction {
|
||||
id: string
|
||||
label: string
|
||||
icon: string
|
||||
disabled?: boolean
|
||||
divider?: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user