import { atom } from 'jotai';
import type { ConnectionStatus, CallState } from '@/types/sip';

export const sipConnectionStatusAtom = atom<ConnectionStatus>('disconnected');
export const sipCallStateAtom = atom<CallState>('idle');
export const sipCallerNumberAtom = atom<string | null>(null);
export const sipIsMutedAtom = atom<boolean>(false);
export const sipIsOnHoldAtom = atom<boolean>(false);
export const sipCallDurationAtom = atom<number>(0);
export const sipCallStartTimeAtom = atom<Date | null>(null);
export const sipCallUcidAtom = atom<string | null>(null);
