- 统一调整 admin.ts 文件中的接口定义缩进格式 - 优化 animated-theme-toggler.tsx 组件的代码结构和缩进 - 规范 app-config-modal.tsx 中 JSX 元素的嵌套格式 - 整理 app-providers.tsx 中的组件层级缩进 - 标准化 app-theme.ts 中的对象属性缩进格式
27 lines
815 B
TypeScript
27 lines
815 B
TypeScript
"use client";
|
|
|
|
import { GithubOutlined } from "@ant-design/icons";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
type GitHubLinkProps = {
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
};
|
|
|
|
export function GitHubLink({ className, style }: GitHubLinkProps) {
|
|
return (
|
|
<a
|
|
className={cn("inline-flex size-9 shrink-0 items-center justify-center rounded-full text-stone-600 transition hover:bg-stone-100 hover:text-stone-950 dark:text-stone-300 dark:hover:bg-stone-800 dark:hover:text-white", className)}
|
|
style={style}
|
|
href="https://github.com/basketikun/infinite-canvas"
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
aria-label="GitHub"
|
|
title="GitHub"
|
|
>
|
|
<GithubOutlined className="text-base" />
|
|
</a>
|
|
);
|
|
}
|