-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7034a3b
commit 8bde194
Showing
6 changed files
with
38 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* eslint-disable react/prop-types */ | ||
/* eslint-disable react/button-has-type */ | ||
/* eslint-disable jsx-a11y/control-has-associated-label */ | ||
/* eslint-disable react/react-in-jsx-scope */ | ||
import { X, Maximize2 } from 'lucide-react' | ||
|
||
const WindowControls: React.FC<{ | ||
onClose: () => void | ||
onMaximize: () => void | ||
}> = ({ onClose, onMaximize }) => ( | ||
<div className="group absolute right-2 top-2 z-10 transition-opacity hover:opacity-100"> | ||
<div className="flex"> | ||
<button onClick={onMaximize} className="cursor-pointer bg-transparent p-1.5 transition-colors" title="Maximize"> | ||
<Maximize2 className="size-3 text-neutral-400 hover:text-neutral-300" /> | ||
</button> | ||
<button onClick={onClose} className="cursor-pointer bg-transparent p-1.5 transition-colors" title="Close"> | ||
<X className="size-3 text-neutral-400 hover:text-neutral-300" /> | ||
</button> | ||
</div> | ||
</div> | ||
) | ||
|
||
export default WindowControls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.