NeoScan_Physician/app/modules/CaseReview/hooks/useAnnotations.ts

23 lines
646 B
TypeScript

/*
* File: useAnnotations.ts
* Description: Custom hook for annotation tools (stub)
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/
import { useState } from 'react';
/**
* useAnnotations - manages annotations (stub)
*/
export const useAnnotations = () => {
const [annotations, setAnnotations] = useState<any[]>([]);
const addAnnotation = (a: any) => setAnnotations(prev => [...prev, a]);
return { annotations, addAnnotation };
};
/*
* End of File: useAnnotations.ts
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/