The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { currentAiChatThreadState } from '@/ai/states/currentAiChatThreadState';
import { newAiChatThreadIdState } from '@/ai/states/newAiChatThreadIdState';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
export const useIsOnNewAiChatSlot = () => {
const currentAiChatThread = useAtomStateValue(currentAiChatThreadState);
const newAiChatThreadId = useAtomStateValue(newAiChatThreadIdState);
return currentAiChatThread === newAiChatThreadId;
};