mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-16 11:47:50 +01:00
9 lines
311 B
TypeScript
9 lines
311 B
TypeScript
import React, { useContext } from "react";
|
|
import { IConfirmation, CONFIRMATION_EMPTY_STATE } from "./props";
|
|
const ConfirmationContext = React.createContext<IConfirmation>(
|
|
CONFIRMATION_EMPTY_STATE
|
|
);
|
|
export default ConfirmationContext;
|
|
|
|
export const useConfirmation = () => useContext(ConfirmationContext);
|