test: add initial test files and component stubs
This commit is contained in:
committed by
Loic Coenen (aider)
parent
5a6de57a91
commit
826069e8dd
9
src/hooks/useCurrentTime.ts
Normal file
9
src/hooks/useCurrentTime.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
export function useCurrentTime(): {
|
||||
currentTime: Date;
|
||||
setCurrentTime: React.Dispatch<React.SetStateAction<Date>>;
|
||||
} {
|
||||
const [currentTime, setCurrentTime] = useState(new Date());
|
||||
return { currentTime, setCurrentTime };
|
||||
}
|
||||
Reference in New Issue
Block a user