1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| import type { CSSProperties, FC } from "react";
| import { cn } from "../../utils/bem";
|
| import "./Hint.scss";
|
| interface HintProps {
| copy?: string;
| style?: CSSProperties;
| className?: string;
| }
|
| /**
| * Hint Component
| */
| const Hint: FC<HintProps> = (props) => {
| return (
| <sup className={cn("hint").mix(props.className).toClassName()} data-copy={props.copy} style={props.style}>
| {props.children}
| </sup>
| );
| };
|
| export default Hint;
|
|