MCPcopy Create free account
hub / github.com/dailydotdev/apps / MenuLabel

Function MenuLabel

packages/shared/src/components/shell/ShellRow.tsx:298–316  ·  view source on GitHub ↗
({
  label,
  onClick,
}: {
  label: ReactNode;
  onClick: () => void;
})

Source from the content-addressed store, hash-verified

296);
297
298export const MenuLabel = ({
299 label,
300 onClick,
301}: {
302 label: ReactNode;
303 onClick: () => void;
304}): ReactElement => (
305 <button
306 type="button"
307 onClick={onClick}
308 className="shell-press flex h-7 items-center gap-0.5 rounded-8 px-1 text-text-secondary typo-footnote"
309 >
310 {label}
311 <ArrowIcon
312 size={IconSize.XSmall}
313 className="rotate-180 text-text-tertiary"
314 />
315 </button>
316);
317
318export const SheetChoice = ({ items }: { items: RowItem[] }): ReactElement => (
319 <div className="flex flex-col py-1">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected