mirror of
https://github.com/mountain-loop/yaak.git
synced 2025-12-23 22:48:55 -05:00
26 lines
603 B
TypeScript
26 lines
603 B
TypeScript
import classNames from 'classnames';
|
|
import type { CSSProperties } from 'react';
|
|
import { memo } from 'react';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
style?: CSSProperties;
|
|
}
|
|
|
|
export const DropMarker = memo(
|
|
function DropMarker({ className, style }: Props) {
|
|
return (
|
|
<div
|
|
style={style}
|
|
className={classNames(
|
|
className,
|
|
'relative w-full h-0 overflow-visible pointer-events-none',
|
|
)}
|
|
>
|
|
<div className="absolute z-50 left-2 right-2 -bottom-[0.1rem] h-[0.2rem] bg-primary rounded-full" />
|
|
</div>
|
|
);
|
|
},
|
|
() => true,
|
|
);
|