mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): knip
This commit is contained in:
parent
a80e3448f5
commit
6b11740dda
@ -1,9 +0,0 @@
|
|||||||
import { useFieldTemplate } from 'features/nodes/hooks/useFieldTemplate';
|
|
||||||
import type { FieldType } from 'features/nodes/types/field';
|
|
||||||
import { useMemo } from 'react';
|
|
||||||
|
|
||||||
export const useFieldType = (nodeId: string, fieldName: string, kind: 'inputs' | 'outputs'): FieldType => {
|
|
||||||
const fieldTemplate = useFieldTemplate(nodeId, fieldName, kind);
|
|
||||||
const fieldType = useMemo(() => fieldTemplate.type, [fieldTemplate]);
|
|
||||||
return fieldType;
|
|
||||||
};
|
|
Loading…
Reference in New Issue
Block a user