-
Notifications
You must be signed in to change notification settings - Fork 0
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
aed40f2
commit eeb2f4c
Showing
8 changed files
with
69 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ToolbarMenu } from "../ui/primary-toolbar-menu"; | ||
import DesktopPreviewToolbarIcon from "../ui/desktop-primary-toolbar-button"; | ||
|
||
const ToolbarMenuItem = ({ title, description, icon: Icon }: ToolbarMenu) => ( | ||
<div> | ||
<DesktopPreviewToolbarIcon {...{ title, description, icon: Icon }} /> | ||
<div className="flex items-center gap-4 lg:hidden"> | ||
<div className="flex-shrink-0"> | ||
<div className="rounded bg-muted p-1 ring-1 ring-border"> | ||
<Icon className="h-5 w-5 text-muted-foreground" /> | ||
</div> | ||
</div> | ||
<div className="flex flex-col items-start"> | ||
<div className="text-sm font-medium text-foreground">{title}</div> | ||
<div className="text-xs text-accent-foreground/50">{description}</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default ToolbarMenuItem; |
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