/**
* Provides clipboard copy functionality with automatic timeout for the "copied" state.
* Uses the modern Clipboard API for secure, asynchronous copying.
*
* @param timeout - Duration in milliseconds to keep the "copied" state true (default: 2000ms)
* @returns Object containing the copied state and copy function
*
* @example
* ```tsx
* function CodeBlock({ code }: { code: string }) {
* const { copied, copy } = useCopyToClipboard();
*
* return (
*