style: run format:apply
This commit is contained in:
+7
-7
@@ -1,13 +1,13 @@
|
||||
import { DB_BASE_URL } from "@/lib/db";
|
||||
import { DB_BASE_URL } from '@/lib/db';
|
||||
|
||||
export type Perk = {
|
||||
id: string;
|
||||
name: string;
|
||||
iconFilePath: string;
|
||||
role: number;
|
||||
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`;
|
||||
const file = (iconFilePath.split('/').pop() ?? '').split('.')[0];
|
||||
return `${DB_BASE_URL}/icons/perk-icons/${file}.png`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user