Separated the ProfileLevel into multiple components and made a Card one
This commit is contained in:
12
src/components/LevelLabel.tsx
Normal file
12
src/components/LevelLabel.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import {levelCalculator} from "@/resources/level";
|
||||
import clsx from "clsx";
|
||||
|
||||
interface Props {
|
||||
experience: number;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export default function LevelLabel({experience, className}: Props) {
|
||||
const {label} = levelCalculator(experience);
|
||||
return <span className={clsx("text-xl font-semibold text-success", className)}>{label}</span>;
|
||||
}
|
||||
Reference in New Issue
Block a user