diff --git a/components/app-footer.tsx b/components/app-footer.tsx index 95c1c47..63ea598 100644 --- a/components/app-footer.tsx +++ b/components/app-footer.tsx @@ -2,8 +2,7 @@ import { useTranslation } from "@/components/language-provider"; import { cn } from "@/lib/utils"; -import { Icon } from "./ui/button"; -import { FaGithub } from "react-icons/fa"; +import { GithubLink } from "./github-link"; export function AppFooter() { const { t, dir } = useTranslation(); @@ -57,19 +56,7 @@ export function AppFooter() { > {t("footer.note")}

- - - - - + diff --git a/components/github-link.tsx b/components/github-link.tsx new file mode 100644 index 0000000..22ff1fb --- /dev/null +++ b/components/github-link.tsx @@ -0,0 +1,24 @@ +"use client"; + +import { Button } from "./ui/button"; +import { FaGithub } from "react-icons/fa"; + +export function GithubLink() { + return ( + + + + ); +} \ No newline at end of file diff --git a/components/theme-toggle.tsx b/components/theme-toggle.tsx index 3d47fd9..6a2cab1 100644 --- a/components/theme-toggle.tsx +++ b/components/theme-toggle.tsx @@ -2,10 +2,10 @@ import { Moon, Sun } from "lucide-react"; import { useTheme } from "next-themes"; -import { Button, Icon } from "./ui/button"; import { useSyncExternalStore } from "react"; import { useTranslation } from "./language-provider"; -import { FaGithub } from "react-icons/fa"; +import { Button } from "./ui/button"; +import { GithubLink } from "./github-link"; const emptySubscribe = () => () => { }; @@ -44,19 +44,7 @@ export function ThemeToggle() { > {mounted && current === "dark" ? : } - - - - - + diff --git a/components/ui/button.tsx b/components/ui/button.tsx index 8cf0297..bec75c3 100644 --- a/components/ui/button.tsx +++ b/components/ui/button.tsx @@ -37,13 +37,4 @@ export function Button({ className, variant, size, ...props }: ButtonProps) { {...props} /> ); -} - -export function Icon({ className, variant, size, ...props }: ButtonProps) { - return ( -