blocks/server-side/features-carousel/index.tsx [22:36]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
interface CopyCodeButtonProps {
    codeSample: string;
    label: string;
}

const CopyCodeButton: FC<CopyCodeButtonProps> = ({ codeSample, label }) => {
    const handleCopy = () => {
        trackEvent({
            eventAction: 'kt_server_side_code_snippet_copy',
            eventLabel: label,
        });
        navigator.clipboard.writeText(codeSample);
    };

    return (
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



blocks/server-side/features-switcher/index.tsx [10:24]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
interface CopyCodeButtonProps {
    codeSample: string;
    label: string;
}

const CopyCodeButton: FC<CopyCodeButtonProps> = ({ codeSample, label }) => {
    const handleCopy = () => {
        trackEvent({
            eventAction: 'kt_server_side_code_snippet_copy',
            eventLabel: label,
        });
        navigator.clipboard.writeText(codeSample);
    };

    return (
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



