mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
18 lines
460 B
TypeScript
18 lines
460 B
TypeScript
import { CATEGORY_IDS } from "./categories";
|
|
import { PAGES, type Page } from "./registry";
|
|
|
|
export type PreviewGroup = {
|
|
id: string;
|
|
pages: Page[];
|
|
};
|
|
|
|
/**
|
|
* Preview catalog: all pages grouped by category.
|
|
*/
|
|
export const PREVIEW_GROUPS: PreviewGroup[] = CATEGORY_IDS.map((category) => ({
|
|
id: category,
|
|
pages: PAGES.filter((page) => page.category === category),
|
|
})).filter((group) => group.pages.length > 0);
|
|
|
|
export const PREVIEW_TOTAL = PAGES.length;
|