import { Check, Copy, Info } from 'lucide-react'; import cn from '~/utils/cn'; import toast from '~/utils/toast'; import Tooltip from './Tooltip'; export interface AttributeProps { name: string; value: string; tooltip?: string; isCopyable?: boolean; } export default function Attribute({ name, value, tooltip, isCopyable, }: AttributeProps) { return (
{name} {tooltip ? ( {tooltip} ) : undefined}
{isCopyable ? ( ) : (
{value}
)}
); }