mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-05 01:58:50 +01:00
* ci(backend-review.yml): add linter step to the backend review workflow * chore(backend-review.yml): remove prettier from lint-action configuration * chore: apply new linting workflow * chore(lint-staged.config.js): reorder lint-staged tasks for JavaScript and TypeScript files * chore(eslint): update ignorePatterns in .eslintrc.js chore(lint-action): remove prettier option in backend-review.yml chore(package.json): add lint and lint:fix scripts * chore(lint-staged.config.js): remove prettier --write command for js, jsx, ts, tsx files * chore(titleConvo.js): remove unnecessary console.log statement chore(titleConvo.js): add missing comma in options object * chore: apply linting to all files * chore(lint-staged.config.js): update lint-staged configuration to include prettier formatting
31 lines
989 B
TypeScript
31 lines
989 B
TypeScript
'use client';
|
|
|
|
import * as React from 'react';
|
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
|
|
import { cn } from '../../utils';
|
|
|
|
const HoverCard = HoverCardPrimitive.Root;
|
|
|
|
const HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
|
|
const HoverCardPortal = HoverCardPrimitive.Portal;
|
|
|
|
const HoverCardContent = React.forwardRef<
|
|
React.ElementRef<typeof HoverCardPrimitive.Content>,
|
|
React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>
|
|
>(({ className, align = 'center', sideOffset = 6, ...props }, ref) => (
|
|
<HoverCardPrimitive.Content
|
|
ref={ref}
|
|
align={align}
|
|
sideOffset={sideOffset}
|
|
className={cn(
|
|
'animate-in fade-in-0 z-50 w-64 rounded-md border border-gray-100 bg-white p-4 shadow-md outline-none dark:border-gray-800 dark:bg-gray-800',
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
));
|
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
|
|
export { HoverCard, HoverCardTrigger, HoverCardContent, HoverCardPortal };
|