Files
Project-Front/src/components/Link/interfaces.ts
2026-02-04 11:00:00 +01:00

10 lines
403 B
TypeScript

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
}