fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
27 lines
479 B
TypeScript
27 lines
479 B
TypeScript
import { iconChipVariants } from "./variants"
|
|
|
|
interface IconChipProps {
|
|
color: "blue" | "green" | "red" | null | undefined
|
|
icon: React.ReactNode
|
|
children: React.ReactNode
|
|
className?: string
|
|
}
|
|
|
|
export default function IconChip({
|
|
color,
|
|
icon,
|
|
className,
|
|
children,
|
|
}: IconChipProps) {
|
|
const classNames = iconChipVariants({
|
|
color: color,
|
|
className: className,
|
|
})
|
|
return (
|
|
<div className={classNames}>
|
|
{icon}
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|