This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Frontend/src/app/components/action-menu.tsx

19 lines
417 B
TypeScript
Raw Normal View History

2024-04-23 03:22:31 +01:00
import React from "react";
import { Button } from "@/app/components/ui/button";
import Link from "next/link";
type ActionMenuProps = {
children?: React.ReactNode;
};
export function ActionMenu({ children }: ActionMenuProps) {
return (
2024-04-23 17:22:29 +01:00
<div className="flex items-center bg-secondary rounded-md p-2 gap-2">
2024-04-23 03:22:31 +01:00
{children}
<Link href={"/"}>
<Button>New</Button>
</Link>
</div>
);
}