-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Extract hook logic into separate package and add a new actio…
…n bar in bookmark preview
- Loading branch information
1 parent
4491831
commit 79d61be
Showing
21 changed files
with
483 additions
and
141 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
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
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,29 @@ | ||
import { Archive, ArchiveRestore, Star } from "lucide-react"; | ||
|
||
export function FavouritedActionIcon({ | ||
favourited, | ||
className, | ||
}: { | ||
favourited: boolean; | ||
className?: string; | ||
}) { | ||
return favourited ? ( | ||
<Star className={className} color="#ebb434" fill="#ebb434" /> | ||
) : ( | ||
<Star className={className} /> | ||
); | ||
} | ||
|
||
export function ArchivedActionIcon({ | ||
archived, | ||
className, | ||
}: { | ||
archived: boolean; | ||
className?: string; | ||
}) { | ||
return archived ? ( | ||
<ArchiveRestore className={className} /> | ||
) : ( | ||
<Archive className={className} /> | ||
); | ||
} |
Oops, something went wrong.