Files
medusa-store/www/packages/docs-ui/src/components/LearningPath/Icon/index.tsx
Shahed Nasser c38f6d07c2 docs: update design + colors (#7593)
Update design and colors in docs to match those in Figma
2024-06-04 07:41:24 +00:00

33 lines
799 B
TypeScript

"use client"
import clsx from "clsx"
import React from "react"
import { useLearningPath } from "../../.."
type LearningPathIconProps = {
className?: string
imgClassName?: string
} & React.AllHTMLAttributes<HTMLDivElement>
export const LearningPathIcon = ({
className = "",
imgClassName = "",
}: LearningPathIconProps) => {
const { baseUrl } = useLearningPath()
return (
<div
className={clsx(
"rounded-full shadow-elevation-card-rest dark:shadow-elevation-card-rest-dark w-docs_3 h-docs_3 bg-medusa-bg-base",
"flex justify-center items-center flex-none",
className
)}
>
<img
src={`${baseUrl}/images/learning-path-img.png`}
className={clsx("rounded-full w-docs_2.5 h-docs_2.5", imgClassName)}
/>
</div>
)
}