Fix broken types in imported library
This commit is contained in:
15
lib/types/NavTypes.ts
Normal file
15
lib/types/NavTypes.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export type Align = "start" | "end";
|
||||
export type Placement = "top" | "bottom" | "left" | "right";
|
||||
export type AnchorTo = `${Placement}` | `${Placement} ${Align}`;
|
||||
|
||||
|
||||
export interface PopoverMenuProps {
|
||||
buttonContent: React.ReactNode;
|
||||
anchor?: AnchorTo;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface NavBarProps {
|
||||
className?: string;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
Reference in New Issue
Block a user