Raw
1 import React from "react"
2 import { IconProps } from "@medusajs/icons/dist/types"
3 import clsx from "clsx"
4
5 type InlineIconProps = IconProps & {
6 Icon: React.ComponentType<IconProps>
7 alt?: string
8 }
9
10 export const InlineIcon = ({ Icon, alt, ...props }: InlineIconProps) => {
11 return (
12 <Icon
13 {...props}
14 className={clsx(
15 "text-medusa-fg-subtle inline-block align-middle",
16 props.className
17 )}
18 aria-label={alt}
19 />
20 )
21 }