import { cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui' import CopyButton from '@/components/ui/CopyButton' const shortenId = (id: string) => (id.length > 20 ? `${id.slice(0, 2)}****${id.slice(-4)}` : id) export const OAuthAppId = ({ id, className, shorten = true, }: { id: string className?: string // Set to false to always show the whole ID (used where there is room, like the edit panel). shorten?: boolean }) => (
{shorten ? (

{shortenId(id)}

{id}
) : (

{id}

)}
)