mirror of https://github.com/usememos/memos
chore: remove unused kit components (#1871)
parent
30fae208c2
commit
db8b8f0d58
@ -1,9 +0,0 @@
|
|||||||
interface Props {
|
|
||||||
className?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
const Divider = ({ className }: Props) => {
|
|
||||||
return <hr className={`${className} block my-1 border-gray-200 dark:border-gray-600`} />;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Divider;
|
|
@ -1,32 +0,0 @@
|
|||||||
import * as TooltipUI from "@radix-ui/react-tooltip";
|
|
||||||
|
|
||||||
type Side = "top" | "right" | "bottom" | "left";
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
title: string;
|
|
||||||
side: Side;
|
|
||||||
children: React.ReactNode;
|
|
||||||
}
|
|
||||||
|
|
||||||
const Tooltip = (props: Props) => {
|
|
||||||
const { title, side, children } = props;
|
|
||||||
|
|
||||||
return (
|
|
||||||
<TooltipUI.Provider delayDuration={0} skipDelayDuration={0}>
|
|
||||||
<TooltipUI.Root>
|
|
||||||
<TooltipUI.Trigger asChild>{children}</TooltipUI.Trigger>
|
|
||||||
<TooltipUI.Portal>
|
|
||||||
<TooltipUI.Content
|
|
||||||
className="bg-zinc-800 text-gray-300 dark:bg-black shadow text-sm p-1 rounded-md z-[99999]"
|
|
||||||
side={side}
|
|
||||||
sideOffset={6}
|
|
||||||
>
|
|
||||||
{title}
|
|
||||||
</TooltipUI.Content>
|
|
||||||
</TooltipUI.Portal>
|
|
||||||
</TooltipUI.Root>
|
|
||||||
</TooltipUI.Provider>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Tooltip;
|
|
Loading…
Reference in New Issue