'use client';

export default function

    useEffect(() => {
        const daysChannel = supabase.channel('days')
            .on('postgres_changes', { event: 'UPDATE', schema: 'public', table: 'days' }, (payload) => {
                setDay(payload.new);
            }).subscribe();

        return () => {
            daysChannel.unsubscribe();
        }
    }, [supabase])