import React, { useEffect, MouseEvent, MouseEventHandler } from "react"; import { Outlet, useSearchParams } from "react-router-dom"; type ThemeProps = { handleClick: MouseEventHandler; } export default function Theme({handleClick}: ThemeProps) { return (