15 lines
455 B
TypeScript
15 lines
455 B
TypeScript
|
|
import type { SkeletonPresetName } from './types';
|
||
|
|
|
||
|
|
/** Default and maximum repeats: never more than one screen of skeletons. */
|
||
|
|
export const PRESET_REPEATS: Partial<
|
||
|
|
Record<SkeletonPresetName, { initial: number; max: number }>
|
||
|
|
> = {
|
||
|
|
post: { initial: 1, max: 3 },
|
||
|
|
'post-media': { initial: 1, max: 3 },
|
||
|
|
prediction: { initial: 1, max: 3 },
|
||
|
|
list: { initial: 4, max: 4 },
|
||
|
|
table: { initial: 5, max: 5 },
|
||
|
|
};
|
||
|
|
|
||
|
|
export const DEFAULT_TABLE_COLUMNS = 5;
|