diff --git a/src/components/LinkWithStatus.tsx b/src/components/LinkWithStatus.tsx index e49dd5c8..c2e1ad7e 100644 --- a/src/components/LinkWithStatus.tsx +++ b/src/components/LinkWithStatus.tsx @@ -1,7 +1,7 @@ 'use client'; -import { ReactNode, useState } from 'react'; -import Link, { LinkProps } from 'next/link'; +import { ComponentProps, ReactNode, useState } from 'react'; +import Link from 'next/link'; import LinkWithStatusChild from './primitives/LinkWithStatusChild'; import clsx from 'clsx/lite'; @@ -12,9 +12,8 @@ export default function LinkWithStatus({ isLoading: isLoadingProp = false, setIsLoading: setIsLoadingProp, ...props -}: LinkProps & { +}: Omit, 'children'> & { children: ReactNode | ((props: { isLoading: boolean }) => ReactNode) - className?: string loadingClassName?: string // For hoisting state to a parent component, e.g., isLoading?: boolean