mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
13 lines
471 B
TypeScript
13 lines
471 B
TypeScript
import { createContext } from 'react';
|
|
|
|
// Create a context to share the setShowAuthDialog function with child components
|
|
export interface RepositoryDialogContextType {
|
|
setShowAuthDialog: React.Dispatch<React.SetStateAction<boolean>>;
|
|
}
|
|
|
|
// Default context value with a no-op function
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
export const RepositoryDialogContext = createContext<RepositoryDialogContextType>({
|
|
setShowAuthDialog: () => {},
|
|
});
|