File size: 1,042 Bytes
59b210a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
'use client'

import { Moon, Sun, RefreshCw } from 'lucide-react'
import { Button } from '@/components/ui/button'
import { useTheme } from 'next-themes'
import { SharePopover } from './SharePopover'

export default function Header({ onReset }) {
  const { theme, setTheme } = useTheme()

  return (
    <header className="flex items-center justify-between p-4 border-b">
      <div className="flex items-center">
        <img src="/karma.png" alt="Karma-Pollinations Logo" className="w-16 h-12 mr-2" />
      </div>
      <h1 className="text-xl font-bold">karma.pollinations.ai</h1>
      <div className="flex items-center space-x-2">
        {/* <Button variant="ghost" size="icon" onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}>
          {theme === 'dark' ? <Sun className="h-5 w-5" /> : <Moon className="h-5 w-5" />}
        </Button> */}
        <Button variant="ghost" size="icon" onClick={onReset}>
          <RefreshCw className="h-5 w-5" />
        </Button>
        <SharePopover />
      </div>
    </header>
  )
}