SPB Git

spb/groupe-ka Public

Groupe KA — site du holding + KA ID (compte unique & SSO des 7 plateformes). Next.js 16, SQLite, Google & Apple login.

TypeScript 93.9% CSS 6%
627 B · 26 lines tsx
Raw Blame History
1// Auteur : Simon-Pierre Boucher — contact@spboucher.ai2"use client";34import { useState } from "react";56export default function CopyKaId({ kaId }: { kaId: string }) {7  const [copied, setCopied] = useState(false);8  return (9    <button10      type="button"11      className="btn btn-ghost"12      onClick={async () => {13        try {14          await navigator.clipboard.writeText(kaId);15          setCopied(true);16          setTimeout(() => setCopied(false), 1800);17        } catch {18          /* presse-papiers indisponible */19        }20      }}21    >22      {copied ? "✓ Copié" : "Copier mon KA-ID"}23    </button>24  );25}26