You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
436 B
18 lines
436 B
import React, { memo, FC } from 'react'; |
|
import style from './index.module.scss'; |
|
export type tooltip = { |
|
title: string; |
|
icon: React.ReactNode; |
|
styleCss?: React.CSSProperties; |
|
}; |
|
|
|
const Index: FC<tooltip> = memo(function Index({ title, icon, styleCss }) { |
|
return ( |
|
<div className={style.tooltip} style={styleCss}> |
|
<>{icon}</> |
|
<div className={style.title}>{title}</div> |
|
</div> |
|
); |
|
}); |
|
|
|
export default Index;
|
|
|