import { createContext } from '@cdx-ui/utils';
import type { TextComponentContextValue } from './types';

const [TextComponentProvider, useTextComponent] =
  createContext<TextComponentContextValue>('TextComponentContext');

export { TextComponentProvider, useTextComponent };
