-
-
Notifications
You must be signed in to change notification settings - Fork 195
/
Copy pathcategories.tsx
62 lines (61 loc) · 1.28 KB
/
categories.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import {
EnhancedEncryption,
FormatQuote,
Functions,
InsertPhoto,
OfflineBolt,
Search,
Sort,
Storage,
} from "@material-ui/icons";
import useTranslation from "./translation";
type Category = {
name: string;
icon: JSX.Element;
href: string;
};
export default function useCategories(): Category[] {
const t = useTranslation();
return [
{
name: t("categories:sorts"),
icon: <Sort />,
href: "/category/sorts",
},
{
name: t("categories:searches"),
icon: <Search />,
href: "/category/searches",
},
{
name: t("categories:dynamicprogramming"),
icon: <OfflineBolt />,
href: "/category/dynamicprogramming",
},
{
name: t("categories:ciphers"),
icon: <EnhancedEncryption />,
href: "/category/ciphers",
},
{
name: t("categories:datastructures"),
icon: <Storage />,
href: "/category/datastructures",
},
{
name: t("categories:math"),
icon: <Functions />,
href: "/category/math",
},
{
name: t("categories:digitalimageprocessing"),
icon: <InsertPhoto />,
href: "/category/digitalimageprocessing",
},
{
name: t("categories:strings"),
icon: <FormatQuote />,
href: "/category/strings",
},
];
}