Start organizational migration
This commit is contained in:
1 parent
69074b23f3
commit
db3c0274f6
161 files changed
+145
-145
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import { memo } from "react";
|
||||
import type { NavigationItemViewProps } from "./NavigationItem.types";
|
||||
|
||||
function NavigationItemView({
|
||||
href,
|
||||
children,
|
||||
disabled,
|
||||
combinedStyles,
|
||||
...props
|
||||
}: NavigationItemViewProps) {
|
||||
if (disabled) {
|
||||
return (
|
||||
<span className={combinedStyles} {...props}>
|
||||
{children}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<a href={href} className={combinedStyles} {...props}>
|
||||
{children}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
NavigationItemView.displayName = "NavigationItemView";
|
||||
|
||||
export default memo(NavigationItemView);
|
||||
Reference in new issue
Block a user