Skip to the content

Capsid menu

app/components/admin/overflow-menu.tsx

23 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.

Functions

The functions of overflow-menu.tsx
FunctionLinesComplexityCoveredCRAPMutation
OverflowMenu3 to 241No data: no coverage report in this mapNo data: no coverage report in this mapNo data: no mutants in this code

Imports

It imports app/components/admin/disclosure.tsx. Imported by app/components/admin/media-upload-actions.tsx, app/components/admin/posts-toolbar.tsx, app/components/admin/publish-actions.tsx.

Source

import { DisclosureMenu } from "./disclosure";

export function OverflowMenu({
  label,
  children,
}: {
  label: string;
  children: React.ReactNode;
}) {
  return (
    <DisclosureMenu
      summary={
        <>
          {label}
          <svg viewBox="0 0 16 16" aria-hidden="true" focusable="false">
            <path d="m4 6 4 4 4-4" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
          </svg>
        </>
      }
    >
      {children}
    </DisclosureMenu>
  );
}