ge-tool/components/CopyButtonWithModal.tsx

28 lines
654 B
TypeScript
Raw Normal View History

2025-12-10 06:41:43 +00:00
import React from 'react';
import { TruncatedPath } from './TruncatedPath';
interface CopyButtonWithModalProps {
label: string;
text: string;
variant?: 'blue' | 'yellow';
}
/**
* Wrapper component for TruncatedPath with label support.
* This component is kept for backward compatibility.
* Internally uses TruncatedPath for consistent behavior.
*/
export const CopyButtonWithModal: React.FC<CopyButtonWithModalProps> = ({
label,
text,
variant = 'blue'
}) => {
return (
<TruncatedPath
path={text}
variant={variant}
label={label}
/>
);
};