sealday
ede7ead8b1
Co-authored-by: sealday <sealday@gmail.com> Reviewed-on: daoyoucloud/tachybase#1045
14 lines
447 B
TypeScript
14 lines
447 B
TypeScript
import React from 'react';
|
|
import { SchemaComponentOptions } from '@tachybase/client';
|
|
|
|
import { PrintActionInitializer } from './PrintActionInitializer';
|
|
import { useDetailPrintActionProps } from './utils';
|
|
|
|
export const PrintActionPluginProvider = (props: any) => {
|
|
return (
|
|
<SchemaComponentOptions components={{ PrintActionInitializer }} scope={{ useDetailPrintActionProps }}>
|
|
{props.children}
|
|
</SchemaComponentOptions>
|
|
);
|
|
};
|