Files
outline/app/editor/components/Tooltip.tsx
2022-01-19 18:43:15 -08:00

21 lines
469 B
TypeScript

import * as React from "react";
import styled from "styled-components";
import Tooltip from "~/components/Tooltip";
type Props = {
children: React.ReactNode;
tooltip?: string;
};
const WrappedTooltip = ({ children, tooltip }: Props) => (
<Tooltip offset="0, 8" delay={150} tooltip={tooltip} placement="top">
<TooltipContent>{children}</TooltipContent>
</Tooltip>
);
const TooltipContent = styled.span`
outline: none;
`;
export default WrappedTooltip;