/** * Taken and adapted from: https://usehooks-ts.com/react-hook/use-interval * * We'd use useInterval from react-use in our normal code. But we want to be lean on dependencies in the design system. */ export default function useInterval(callback: () => void, delayMs: number | null): void;