feat: add perks tab

This commit is contained in:
2026-06-19 04:25:17 -03:00
parent 4d042872ed
commit 28ab28f942
3 changed files with 100 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { DB_BASE_URL } from "@/lib/db";
export type Perk = {
id: string;
name: string;
iconFilePath: string;
role: number;
};
export const getPerkIconUrl = (iconFilePath: string) => {
const file = (iconFilePath.split('/').pop() ?? '').split('.')[0];
return `${DB_BASE_URL}/icons/perk-icons/${file}.png`;
};