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 ? (
) : undefined}
-
{isCopyable ? (
) : (
{value.includes("\n") ? (
value.split("\n").map((line) => (
{line}
))
) : (
{value}
)}
)}
);
}