19 lines
450 B
TypeScript
19 lines
450 B
TypeScript
|
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>
|
||
|
);
|
||
|
}
|