MCPcopy Create free account
hub / github.com/Noumena-Network/code / NotifChannelLabel

Function NotifChannelLabel

src/components/Settings/Config.tsx:1758–1825  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

1756 'light-ansi': 'Light mode (ANSI colors only)'
1757};
1758function NotifChannelLabel(t0) {
1759 const $ = _c(4);
1760 const {
1761 value
1762 } = t0;
1763 switch (value) {
1764 case "auto":
1765 {
1766 return "Auto";
1767 }
1768 case "iterm2":
1769 {
1770 let t1;
1771 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1772 t1 = <Text>iTerm2 <Text dimColor={true}>(OSC 9)</Text></Text>;
1773 $[0] = t1;
1774 } else {
1775 t1 = $[0];
1776 }
1777 return t1;
1778 }
1779 case "terminal_bell":
1780 {
1781 let t1;
1782 if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1783 t1 = <Text>Terminal Bell <Text dimColor={true}>(\a)</Text></Text>;
1784 $[1] = t1;
1785 } else {
1786 t1 = $[1];
1787 }
1788 return t1;
1789 }
1790 case "kitty":
1791 {
1792 let t1;
1793 if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1794 t1 = <Text>Kitty <Text dimColor={true}>(OSC 99)</Text></Text>;
1795 $[2] = t1;
1796 } else {
1797 t1 = $[2];
1798 }
1799 return t1;
1800 }
1801 case "ghostty":
1802 {
1803 let t1;
1804 if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
1805 t1 = <Text>Ghostty <Text dimColor={true}>(OSC 777)</Text></Text>;
1806 $[3] = t1;
1807 } else {
1808 t1 = $[3];
1809 }
1810 return t1;
1811 }
1812 case "iterm2_with_bell":
1813 {
1814 return "iTerm2 w/ Bell";
1815 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected