import { useRef, useEffect } from 'react'; import { Tag } from 'antd'; interface Props { count: number; total: number; allSelected: boolean; indeterminate: boolean; onToggleAll: () => void; } function MasterCheckbox({ checked, indeterminate, onChange }: { checked: boolean; indeterminate: boolean; onChange: () => void }) { const ref = useRef(null); useEffect(() => { if (ref.current) ref.current.indeterminate = indeterminate; }, [indeterminate]); return ; } export function NotificationHeader({ count, total, allSelected, indeterminate, onToggleAll }: Props) { return ( {count}/{total} ); }