This repository has been archived on 2026-01-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nextjs-serve-actions/contexts/ProfileContext.ts
2024-05-23 16:55:29 +02:00

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: () => {}
});