 0b95ca36f1
			
		
	
	0b95ca36f1
	
	
	
		
			
			- Set up Next.js project structure - Added UI components and styling - Configured package dependencies - Added feature documentation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			564 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			564 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| "use client"
 | |
| 
 | |
| import { useTheme } from "next-themes"
 | |
| import { Toaster as Sonner, ToasterProps } from "sonner"
 | |
| 
 | |
| const Toaster = ({ ...props }: ToasterProps) => {
 | |
|   const { theme = "system" } = useTheme()
 | |
| 
 | |
|   return (
 | |
|     <Sonner
 | |
|       theme={theme as ToasterProps["theme"]}
 | |
|       className="toaster group"
 | |
|       style={
 | |
|         {
 | |
|           "--normal-bg": "var(--popover)",
 | |
|           "--normal-text": "var(--popover-foreground)",
 | |
|           "--normal-border": "var(--border)",
 | |
|         } as React.CSSProperties
 | |
|       }
 | |
|       {...props}
 | |
|     />
 | |
|   )
 | |
| }
 | |
| 
 | |
| export { Toaster }
 |