12 lines
275 B
TypeScript
12 lines
275 B
TypeScript
import { createContext } from 'react';
|
|
|
|
interface ProfileContextProps {
|
|
profile: string | undefined;
|
|
setProfile: (profile: string | undefined) => void;
|
|
}
|
|
|
|
export const ProfileContext = createContext<ProfileContextProps>({
|
|
profile: undefined,
|
|
setProfile: () => {}
|
|
});
|