- Added new image assets: image_mode.png, logo-with-bg.png, image-provider.png, and openai.png. - Enhanced presentation generation state to include theme property. - Introduced updateTheme action in presentation generation slice. - Updated user configuration with default LLM and image provider settings. - Modified Tailwind CSS configuration to include new font families. - Improved API utility functions for better handling of URLs in Electron environment. - Adjusted PPTX model utility for border radius handling. - Expanded provider constants to include URLs and icons for LLM providers. - Updated provider utility functions for consistent API URL usage. - Added new quality options for image generation providers. - Updated package-lock.json to include new dependencies for react-colorful and scheduler.
23 lines
786 B
TypeScript
23 lines
786 B
TypeScript
import { Tooltip } from '@radix-ui/react-tooltip'
|
|
import { TooltipProvider } from '@radix-ui/react-tooltip'
|
|
import React from 'react'
|
|
import { TooltipContent, TooltipTrigger, } from './ui/tooltip'
|
|
|
|
const ToolTip = ({ children, content, className }: { children: React.ReactNode, content: string, className?: string }) => {
|
|
return (
|
|
<div className={className}>
|
|
<TooltipProvider delayDuration={100}>
|
|
<Tooltip>
|
|
<TooltipTrigger asChild>
|
|
{children}
|
|
</TooltipTrigger>
|
|
<TooltipContent>
|
|
<p>{content}</p>
|
|
</TooltipContent>
|
|
</Tooltip>
|
|
</TooltipProvider>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ToolTip
|