import { Fragment, memo } from 'react' import { Badge, Tooltip } from '@janhq/joi' import { AlertTriangleIcon, InfoIcon } from 'lucide-react' type Props = { compact?: boolean } const tooltipContent = `Your device may be running low on available RAM, which can affect the speed of this model. Try closing any unnecessary applications to free up system memory.` const SlowOnYourDeviceLabel = ({ compact }: Props) => ( <> {compact ? (
} content={ Slow on your device: {tooltipContent} } />
) : ( Slow on your device } content={ Slow on your device: {tooltipContent} } /> )} ) export default memo(SlowOnYourDeviceLabel)