Develop a reusable React component for a 'copy to clipboard' button, suitable for use within code blocks. The button should be compact, utilizing an icon to represent its function. Implement a tooltip to provide user feedback, displaying 'Copy' initially and changing to 'Copied' upon successful copy. The component should allow customization of the duration for which the 'Copied' feedback is displayed. Ensure the component is accessible and visually integrates well with code block styling. Use shadcn and tailwind.