import styled from "styled-components"; import { Children } from "../../types/Preact"; import { Position, Tooltip as TooltipCore, TooltipProps } from "react-tippy"; type Props = Omit & { position?: Position; children: Children; content: Children; } const TooltipBase = styled.div` padding: 8px; font-size: 12px; border-radius: 4px; color: var(--foreground); background: var(--secondary-background); `; export default function Tooltip(props: Props) { return ( {props.content}} /> ); }