mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 18:06:38 -04:00
start extracting types to shared .d.ts file
This commit is contained in:
@ -2,16 +2,16 @@ import Link from "next/link";
|
||||
import isAbsoluteUrl from "is-absolute-url";
|
||||
import hexRgb from "hex-rgb";
|
||||
import { WaveIcon, LockIcon } from "../components/icons";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
type ColorLinkProps = {
|
||||
children: unknown;
|
||||
children: ReactNode;
|
||||
href: string;
|
||||
lightColor: string;
|
||||
darkColor: string;
|
||||
title?: string;
|
||||
external?: boolean;
|
||||
};
|
||||
|
||||
const ColorLink = ({ href, title, lightColor, darkColor, external = false, children }: ColorLinkProps) => {
|
||||
external = external || isAbsoluteUrl(href);
|
||||
|
||||
|
Reference in New Issue
Block a user