import React from 'react'; import type * as CSS from 'csstype'; export interface PointerProps extends React.HTMLAttributes { prefixCls?: string; top?: string; left: string; color?: string; } const BOXSHADOW = 'rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px'; export const Pointer = ({ className, color, left, top, style, prefixCls }: PointerProps): JSX.Element => { const styleWarp: CSS.Properties = { ...style, position: 'absolute', top, left, }; const cls = `${prefixCls}-pointer ${className || ''}`; return (
); };