mirror of
https://github.com/outline/outline.git
synced 2026-11-21 21:44:30 +03:00
27 lines
502 B
TypeScript
27 lines
502 B
TypeScript
import * as React from "react";
|
|
import styled from "styled-components";
|
|
import Tooltip, { Props } from "~/components/Tooltip";
|
|
|
|
const WrappedTooltip: React.FC<Props> = ({
|
|
children,
|
|
content,
|
|
...rest
|
|
}: Props) => (
|
|
<Tooltip
|
|
offset={[0, 16]}
|
|
delay={150}
|
|
content={content}
|
|
placement="top"
|
|
shortcutOnNewline
|
|
{...rest}
|
|
>
|
|
<TooltipContent>{children}</TooltipContent>
|
|
</Tooltip>
|
|
);
|
|
|
|
const TooltipContent = styled.span`
|
|
outline: none;
|
|
`;
|
|
|
|
export default WrappedTooltip;
|