import { CopyIcon } from '@primer/octicons-react'; import { toast } from './Toaster'; interface Props { name: string; value: string; isCopyable?: boolean; link?: string; } export default function Attribute({ name, value, link, isCopyable }: Props) { const canCopy = isCopyable ?? false; return (
{link ? ( {name} ) : ( name )}
{canCopy ? ( ) : (
{value}
)}
); }