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

Function destructive

packages/shared/src/features/posts/PostOptionsSheet.tsx:62–70  ·  view source on GitHub ↗
(option: MenuItemProps)

Source from the content-addressed store, hash-verified

60);
61
62const destructive = (option: MenuItemProps): MenuItemProps =>
63 option.id === 'delete'
64 ? {
65 ...option,
66 Wrapper: ({ children }) => (
67 <span className="contents text-status-error">{children}</span>
68 ),
69 }
70 : option;
71
72export const PostOptionsSheet = ({
73 options,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected