()
| 62 | }, []); |
| 63 | |
| 64 | const toggle = () => { |
| 65 | userExplicitRef.current = true; |
| 66 | setCollapsed((prev) => { |
| 67 | const next = !prev; |
| 68 | try { |
| 69 | document.cookie = `${COOKIE}=${ |
| 70 | next ? "1" : "0" |
| 71 | }; path=/; max-age=${60 * 60 * 24 * 365}; SameSite=Lax`; |
| 72 | } catch { |
| 73 | // ignore |
| 74 | } |
| 75 | return next; |
| 76 | }); |
| 77 | }; |
| 78 | |
| 79 | const baseButtonClass = cn( |
| 80 | "inline-flex h-6 w-6 items-center justify-center", |
nothing calls this directly
no outgoing calls
no test coverage detected