Finish Project
This commit is contained in:
10
src/components/Link/interfaces.ts
Normal file
10
src/components/Link/interfaces.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import {LinkProps} from "next/link";
|
||||
import React, {AnchorHTMLAttributes} from "react";
|
||||
import {Url} from "next/dist/shared/lib/router/router";
|
||||
|
||||
export interface CustomLinkProps extends LinkProps, Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof LinkProps> {
|
||||
children?: React.ReactNode
|
||||
type?: "button" | "submit" | "reset"
|
||||
typeStyle?: "primary" | "secondary" | "tertiary"
|
||||
link?: Url
|
||||
}
|
||||
Reference in New Issue
Block a user