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

Function useModalContext

packages/shared/src/components/modals/common/types.ts:150–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148});
149
150export const useModalContext = (): ModalContextProps =>
151 useContext(ModalPropsContext);
152
153export function modalTabTitle(tab: string | ModalTabItem): string {
154 return typeof tab === 'string' ? tab : tab.title;

Callers 5

DrawerImgFunction · 0.90
ModalImgFunction · 0.90
ModalCloseComponentFunction · 0.90
SidebarListFunction · 0.90
BuyCreditsButtonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected