|
1
|
"use client" |
|
2
|
|
|
3
|
import clsx from "clsx" |
|
4
|
import React from "react" |
|
5
|
import { useLearningPath } from "../../.." |
|
6
|
|
|
7
|
type LearningPathIconProps = { |
|
8
|
className?: string |
|
9
|
imgClassName?: string |
|
10
|
} & React.AllHTMLAttributes<HTMLDivElement> |
|
11
|
|
|
12
|
export const LearningPathIcon = ({ |
|
13
|
className = "", |
|
14
|
imgClassName = "", |
|
15
|
}: LearningPathIconProps) => { |
|
16
|
const { baseUrl } = useLearningPath() |
|
17
|
|
|
18
|
return ( |
|
19
|
<div |
|
20
|
className={clsx( |
|
21
|
"rounded-full shadow-elevation-card-rest dark:shadow-elevation-card-rest-dark w-docs_3 h-docs_3 bg-medusa-bg-base", |
|
22
|
"flex justify-center items-center flex-none", |
|
23
|
className |
|
24
|
)} |
|
25
|
> |
|
26
|
<img |
|
27
|
src={`${baseUrl}/images/learning-path-img.png`} |
|
28
|
className={clsx("rounded-full w-docs_2.5 h-docs_2.5", imgClassName)} |
|
29
|
/> |
|
30
|
</div> |
|
31
|
) |
|
32
|
} |