Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

352 B
Raw Blame
import { useSyncExternalStore } from 'react';
import {
  type ContactEmailState,
  type ContactEmailStore,
  contactEmailStore,
} from '@/lib/contact-email-store';

export function useContactEmail(store: ContactEmailStore = contactEmailStore): ContactEmailState {
  return useSyncExternalStore(store.subscribe, store.getSnapshot, store.getSnapshot);
}