16 lines
363 B
TypeScript
16 lines
363 B
TypeScript
import React from "react";
|
|
|
|
type ActionMenuProps = {
|
|
children?: React.ReactNode;
|
|
};
|
|
|
|
export function ActionMenu({ children }: ActionMenuProps) {
|
|
return (
|
|
<div className="absolute top-0 right-0 flex flex-col items-end mx-3 mt-2">
|
|
<div className="flex items-center bg-secondary rounded-md p-2 gap-2">
|
|
{children}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|