Spaces:
Build error
Build error
File size: 472 Bytes
75fefa7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
"use client";
import EndpointsScrape from "@/components/app/(home)/sections/endpoints/EndpointsScrape/EndpointsScrape";
import { ComponentProps } from "react";
import { useMediaQuery } from "usehooks-ts";
export const RenderEndpointIcon = ({
icon: Icon,
...props
}: { icon: typeof EndpointsScrape } & ComponentProps<
typeof EndpointsScrape
>) => {
const isMobile = useMediaQuery("(max-width: 996px)");
return <Icon {...props} size={isMobile ? 24 : 20} />;
};
|