()
| 1649 | } |
| 1650 | |
| 1651 | const MutationStatusCount: Component = () => { |
| 1652 | const success = createSubscribeToMutationCacheBatcher( |
| 1653 | (mutationCache) => |
| 1654 | mutationCache() |
| 1655 | .getAll() |
| 1656 | .filter( |
| 1657 | (m) => |
| 1658 | getMutationStatusColor({ |
| 1659 | isPaused: m.state.isPaused, |
| 1660 | status: m.state.status, |
| 1661 | }) === 'green', |
| 1662 | ).length, |
| 1663 | ) |
| 1664 | |
| 1665 | const pending = createSubscribeToMutationCacheBatcher( |
| 1666 | (mutationCache) => |
| 1667 | mutationCache() |
| 1668 | .getAll() |
| 1669 | .filter( |
| 1670 | (m) => |
| 1671 | getMutationStatusColor({ |
| 1672 | isPaused: m.state.isPaused, |
| 1673 | status: m.state.status, |
| 1674 | }) === 'yellow', |
| 1675 | ).length, |
| 1676 | ) |
| 1677 | |
| 1678 | const paused = createSubscribeToMutationCacheBatcher( |
| 1679 | (mutationCache) => |
| 1680 | mutationCache() |
| 1681 | .getAll() |
| 1682 | .filter( |
| 1683 | (m) => |
| 1684 | getMutationStatusColor({ |
| 1685 | isPaused: m.state.isPaused, |
| 1686 | status: m.state.status, |
| 1687 | }) === 'purple', |
| 1688 | ).length, |
| 1689 | ) |
| 1690 | |
| 1691 | const error = createSubscribeToMutationCacheBatcher( |
| 1692 | (mutationCache) => |
| 1693 | mutationCache() |
| 1694 | .getAll() |
| 1695 | .filter( |
| 1696 | (m) => |
| 1697 | getMutationStatusColor({ |
| 1698 | isPaused: m.state.isPaused, |
| 1699 | status: m.state.status, |
| 1700 | }) === 'red', |
| 1701 | ).length, |
| 1702 | ) |
| 1703 | |
| 1704 | const theme = useTheme() |
| 1705 | const css = useQueryDevtoolsContext().shadowDOMTarget |
| 1706 | ? goober.css.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) |
| 1707 | : goober.css |
| 1708 | const styles = createMemo(() => { |
nothing calls this directly
no test coverage detected