components/CourtCeremony.tsx

edict · edict/frontend/src/components/CourtCeremony.tsx · typescript · MIT
crm, CRM / Leads

Displays a daily court ceremony overlay with task stats.

// Source: https://github.com/cft0808/edict | License: MIT | Copyright 2026 openclaw-sansheng-liubu contributors
// Provided via justclaw.it.com; keep this notice with the code.
import { useEffect, useState } from 'react';
import { useStore, isEdict } from '../store';

export default function CourtCeremony() {
  const liveStatus = useStore((s) => s.liveStatus);
  const [show, setShow] = useState(false);
  const [out, setOut] = useState(false);

  useEffect(() => {
    const lastOpen = localStorage.getItem('openclaw_court_date');
    const today = new Date().toISOString().substring(0, 10);
    const pref = JSON.parse(localStorage.getItem('openclaw_court_pref') || '{"enabled":true}');
    if (!pref.enabled || lastOpen === today) return;
    localStorage.setItem('openclaw_court_date', today);

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key