1import {
2 IconX,
3 IconPlus,
4 IconChevronUp,
5 IconChevronDown,
6 IconChevronLeft,
7 IconChevronRight,
8} from "@tabler/icons-react";
9
10type names =
11 | "chevron-down"
12 | "chevron-up"
13 | "chevron-right"
14 | "chevron-left"
15 | "close"
16 | "icon-plus"
17 | "plus";
18
19export const iconMapper: Record<names, any> = {
20 ["chevron-down"]: IconChevronDown,
21 ["chevron-up"]: IconChevronUp,
22 ["chevron-right"]: IconChevronRight,
23 ["chevron-left"]: IconChevronLeft,
24 close: IconX,
25 "icon-plus": IconPlus,
26 plus: IconPlus,
27};
28
29export type iconSizes = "extra-small" | "small" | "medium" | "large";
30
31export const sizeMapper: Record<iconSizes, string> = {
32 "extra-small": "w-4 h-4",
33 small: "w-6 h-6",
34 medium: "w-8 h-8",
35 large: "w-10 h-10",
36};