forked from conaticus/FileExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFolderNavigation.tsx
More file actions
27 lines (24 loc) · 1 KB
/
Copy pathFolderNavigation.tsx
File metadata and controls
27 lines (24 loc) · 1 KB
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
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faArrowLeft, faArrowRight} from "@fortawesome/free-solid-svg-icons";
export interface Props {
onBackArrowClick: () => void;
canGoBackward: boolean;
onForwardArrowClick: () => void;
canGoForward: boolean;
}
export default function FolderNavigation({ onBackArrowClick, canGoBackward, onForwardArrowClick, canGoForward }: Props) {
return <div className="mb-5">
<div className="space-x-4">
<button onClick={onBackArrowClick} disabled={!canGoBackward}>
<FontAwesomeIcon
icon={faArrowLeft}
size="xl"
className={canGoBackward ? undefined : "text-gray-600"}
/>
</button>
<button onClick={onForwardArrowClick} disabled={!canGoForward}>
<FontAwesomeIcon icon={faArrowRight} size="xl" className={canGoForward ? undefined : "text-gray-600"}/>
</button>
</div>
</div>;
}