This commit is contained in:
18
src/app/components/action-menu.tsx
Normal file
18
src/app/components/action-menu.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
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 (
|
||||
<div className="absolute top-0 right-0 flex items-center mx-3 mt-2 bg-secondary rounded-md p-2 gap-2">
|
||||
{children}
|
||||
<Link href={"/"}>
|
||||
<Button>New</Button>
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user