-
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
48a888e
commit 2ba4f35
Showing
9 changed files
with
96 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { NavbarMenuItem, Link, Button } from '@nextui-org/react'; | ||
import { Link as LinkType } from '@do-ob/ui/types'; | ||
|
||
/** | ||
* Navigation Brand properties | ||
*/ | ||
export interface NavigationPart_LinksProps { | ||
/** | ||
* The branding title to display. | ||
*/ | ||
links?: LinkType[]; | ||
} | ||
|
||
/** | ||
* Navigation Links component | ||
*/ | ||
export function NavigationPart_Links({ | ||
links = [], | ||
}: NavigationPart_LinksProps) { | ||
return links.length ? links.map((link) => ( | ||
<NavbarMenuItem> | ||
<Button as={Link} href={link.url} variant="light" className="text-inherit"> | ||
{link.title} | ||
</Button> | ||
</NavbarMenuItem> | ||
)) : ( | ||
<NavbarMenuItem> | ||
| ||
</NavbarMenuItem> | ||
); | ||
} | ||
|
||
export default NavigationPart_Links; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.