/** * @description * Provides the data available to React-based CustomDetailComponents. * * @example * ```ts * import { Card, useDetailComponentData } from '\@vendure/admin-ui/react'; * import React from 'react'; * * export function CustomDetailComponent(props: any) { * const { entity, detailForm } = useDetailComponentData(); * const updateName = () => { * detailForm.get('name')?.setValue('New name'); * detailForm.markAsDirty(); * }; * return ( * * *
{JSON.stringify(entity, null, 2)}
*
* ); * } * ``` * * @docsCategory react-hooks */ export declare function useDetailComponentData(): { entity: T | null; detailForm: import("@angular/forms").FormGroup; };