import { Button, ButtonProps } from "@/components/ui/button";
import Link from "@/lib/link";
import { JSX, RefAttributes } from "react";

const EditButton = (
  props: JSX.IntrinsicAttributes &
    ButtonProps &
    RefAttributes<HTMLButtonElement>
) => {
  return (
    <Link href={"/app/dashboard"}>
      <Button {...props}>{props.children}</Button>
    </Link>
  );
};

export default EditButton;
