mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 16:37:06 +02:00
8c94c85f2bdddb17bb46e57c9879ecfed18dc439
- Add copy button to WindowToolbar for regular NIPs (appId: "nip") - Button appears in window toolbar next to edit button - Uses Copy/CopyCheck icons from lucide-react - Fetches NIP content via useNip hook - Shows toast notification on successful copy - Add copy button to CommunityNIPDetailRenderer for community NIPs (kind 30817) - Button appears in header next to title - Copies event.content (markdown) to clipboard - Uses same Copy/CopyCheck icon pattern - Shows toast notification on successful copy Both implementations use the existing useCopy hook for state management and maintain consistent styling with other toolbar buttons.
Languages
TypeScript
98.9%
CSS
0.8%
JavaScript
0.3%