import { ContentCopyIcon, IconButton, Typography } from "@firecms/ui"; import { useCallback, useState } from "react"; export function PropertyIdCopyTooltipContent({ propertyId }: { propertyId: string }) { const [copied, setCopied] = useState(false); return (
{copied ? "Copied" : "Property ID"} {propertyId}
{ navigator.clipboard.writeText(propertyId); setCopied(true); setTimeout(() => setCopied(false), 2000); }, [propertyId])} />
); }