"use strict";const e=require("react/jsx-runtime"),p=require("@mui/material/Tooltip"),i=require("@mui/material/Box");function s({title:n,content:l,variant:o="default",placement:c="top",delay:r,children:x}){const t=n??l??"",u=o==="code"?e.jsx(i,{sx:{fontFamily:"var(--ov-font-mono)",fontSize:"var(--ov-text-xs)",bgcolor:"var(--ov-bg-surface-inset)",px:1,py:.5,borderRadius:"3px"},children:t}):o==="rich"?e.jsx(i,{sx:{p:1,maxWidth:320},children:t}):t;return e.jsx(p,{title:u,placement:c,enterDelay:r,enterNextDelay:r,arrow:o==="default",children:x})}s.displayName="Tooltip";exports.Tooltip=s;
