'use client' import { FC } from "react"; import useColorShift, { type ColorListType } from "./useColorShift"; import { useRouter } from "next/navigation"; export { default as useColorShift } from "./useColorShift"; const DEFAULT_SHIFT_INTERVAL = 3000; interface LogoProps { shiftInterval?: number, customColorList?: ColorListType[], disableShift?: boolean, } export const StackedLogo: FC = ({ shiftInterval, customColorList, disableShift = false }) => { const hookProps = [ shiftInterval ?? DEFAULT_SHIFT_INTERVAL, disableShift, customColorList, ] as const; const { firstColor, secondColor, thirdColor, handleHover } = useColorShift(...hookProps); return (

M

C

D

) } export const InlineLogo: FC = ({ shiftInterval, customColorList, disableShift = false }) => { const router = useRouter(); const hookProps = [ shiftInterval ?? DEFAULT_SHIFT_INTERVAL, disableShift, customColorList, ] as const; const { firstColor, secondColor, thirdColor, handleHover } = useColorShift(...hookProps); return ( ) }