mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
18 lines
503 B
TypeScript
18 lines
503 B
TypeScript
"use client";
|
|
import { buttonVariants } from "@/components/ui/button";
|
|
import { GearIcon } from "@radix-ui/react-icons";
|
|
import Link from "next/link";
|
|
import { usePathname } from "next/navigation";
|
|
|
|
export type EditButtonProps = {};
|
|
|
|
export const EditButton = (props: EditButtonProps) => {
|
|
const pathname = usePathname();
|
|
|
|
return (
|
|
<Link className={buttonVariants({ variant: "outline" })} href={`${pathname}/edit`}>
|
|
<GearIcon className="w-7 h-7" />
|
|
</Link>
|
|
);
|
|
};
|