mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 23:29:08 +03:00
* add deprecate notice * support old icons still * Remove unused icons. * Fix the icons in stories. * Remove console.log --------- Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
17 lines
462 B
TypeScript
17 lines
462 B
TypeScript
import React from 'react'
|
|
import styleHandler from '../theme/styleHandler'
|
|
import { cn } from '../utils'
|
|
|
|
export default function InputIconContainer({
|
|
icon,
|
|
className,
|
|
size,
|
|
}: {
|
|
icon: React.ReactNode
|
|
className?: string
|
|
size: 'tiny' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge'
|
|
}) {
|
|
const __styles = styleHandler('inputIconContainer')
|
|
return <div className={cn(__styles.base, __styles.size[size], className)}>{icon}</div>
|
|
}
|