SettingsHeader.tsx 781 B

12345678910111213141516171819202122232425
  1. import { IconButton } from "../common"
  2. interface SettingsHeaderProps {
  3. onClose: () => void
  4. }
  5. export function SettingsHeader({ onClose }: SettingsHeaderProps) {
  6. return (
  7. <div className="px-3 py-2 border-b border-gray-200 dark:border-gray-800 flex items-center justify-between">
  8. <h2 className="text-base font-semibold text-gray-900 dark:text-gray-100">Settings</h2>
  9. <IconButton
  10. onClick={onClose}
  11. size="md"
  12. aria-label="Close"
  13. title="Close"
  14. data-tip="Close"
  15. icon={
  16. <svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
  17. <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
  18. </svg>
  19. }
  20. />
  21. </div>
  22. )
  23. }