index.tsx 318 B

12345678910111213141516
  1. import type { FC } from 'react'
  2. import React from 'react'
  3. type IconProps = {
  4. icon: any
  5. className?: string
  6. [key: string]: any
  7. }
  8. const Icon: FC<IconProps> = ({ icon, className, ...other }) => {
  9. return (
  10. <img src={icon} className={`h-3 w-3 ${className}`} {...other} alt="icon" />
  11. )
  12. }
  13. export default Icon