ARTEX — AI 自主渗透测试系统(Go 后端 + Next.js 前端,单二进制内嵌)。 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
31 lines
645 B
TypeScript
31 lines
645 B
TypeScript
"use client";
|
|
|
|
import type * as React from "react";
|
|
|
|
import type { SimpleIcon as SimpleIconType } from "simple-icons";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
type SimpleIconProps = {
|
|
icon: SimpleIconType;
|
|
className?: string;
|
|
} & React.SVGProps<SVGSVGElement>;
|
|
|
|
export function SimpleIcon({ icon, className, ...props }: SimpleIconProps) {
|
|
const { title, path } = icon;
|
|
|
|
return (
|
|
<svg
|
|
viewBox="0 0 24 24"
|
|
aria-label={title}
|
|
aria-hidden="false"
|
|
focusable="false"
|
|
className={cn("size-5 fill-foreground", className)}
|
|
{...props}
|
|
>
|
|
<title>{title}</title>
|
|
<path d={path} />
|
|
</svg>
|
|
);
|
|
}
|