mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-28 18:05:41 -04:00
19 lines
458 B
TypeScript
19 lines
458 B
TypeScript
import React from 'react';
|
|
import { SortDirection } from 'Helpers/Props/sortDirections';
|
|
|
|
type PropertyFunction<T> = () => T;
|
|
|
|
// TODO: Convert to generic so `name` can be a type
|
|
interface Column {
|
|
name: string;
|
|
label: string | PropertyFunction<string> | React.ReactNode;
|
|
className?: string;
|
|
columnLabel?: string;
|
|
isSortable?: boolean;
|
|
fixedSortDirection?: SortDirection;
|
|
isVisible: boolean;
|
|
isModifiable?: boolean;
|
|
}
|
|
|
|
export default Column;
|