@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
10 lines (9 loc) • 525 B
TypeScript
import { IFileModel, IPartData, IPartThumbnail } from '../models';
/**
* Custom hooks for part form.
* @param {IPartData | undefined} formData Data of part form.
* @param {Function} onSave Callback fired when clicking the save button.
* @param {IPartThumbnail} thumbnail Thumbnail relevant function.
* @return {Object} Return an object for custom hooks.
*/
export declare const usePartForm: (formData: IPartData | undefined, onSave: (part: IPartData, thumbnail?: IFileModel) => void, thumbnail: IPartThumbnail) => any;