feat: Revamp navigation bar (#6031)

closes: #4428

Testing for fetchMoreRecords is pending, along with component tests

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
Aditya Pimpalkar
2024-07-16 13:38:17 +01:00
committed by GitHub
parent a8dfff3a6d
commit 4a67cfa1c3
66 changed files with 1056 additions and 365 deletions

View File

@ -0,0 +1,12 @@
import { Context, createContext } from 'react';
type ObjectOfFunctions = {
[key: string]: (...args: any[]) => void;
};
export type EventContext<T extends ObjectOfFunctions> =
T extends ObjectOfFunctions ? T : never;
export const createEventContext = <T extends ObjectOfFunctions>(): Context<
EventContext<T>
> => createContext<EventContext<T>>({} as EventContext<T>);