refactor(app): switch to @phosphor-icons/core and format files

This commit is contained in:
rektdeckard
2023-01-08 02:10:49 -07:00
parent b708d823a7
commit 2a030b08cd
16 changed files with 66 additions and 10426 deletions

View File

@@ -2,7 +2,10 @@
import { useState, useEffect } from "react";
import { useTimeoutFn } from "react-use";
export default <T>(baseState: T, ms: number = 1000): [T, (transientValue: T) => void] => {
export default <T>(
baseState: T,
ms: number = 1000
): [T, (transientValue: T) => void] => {
const [value, setValue] = useState<T>(baseState);
const [, cancel, restart] = useTimeoutFn(() => setValue(baseState), ms);