mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(config): add mapping for EditorLanguage to icons
This commit is contained in:
parent
82d85d3b31
commit
02f4fc1c3f
11
src/config/editor-language-icons.ts
Normal file
11
src/config/editor-language-icons.ts
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { EditorLanguage } from "@prisma/client";
|
||||||
|
import { COriginal, CplusplusOriginal } from "devicons-react";
|
||||||
|
|
||||||
|
// Mapping between EditorLanguage and icons
|
||||||
|
export const EditorLanguageIcons: Record<
|
||||||
|
EditorLanguage,
|
||||||
|
React.FunctionComponent<React.SVGProps<SVGElement> & { size?: number | string }>
|
||||||
|
> = {
|
||||||
|
[EditorLanguage.c]: COriginal,
|
||||||
|
[EditorLanguage.cpp]: CplusplusOriginal,
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user