import React, { useContext } from 'react'; import { DialogContext } from './'; import { useDeepCompareEffect } from '@/plugins/useDeepCompareEffect'; export default ({ children }: { children: React.ReactNode }) => { const { setFooter } = useContext(DialogContext); useDeepCompareEffect(() => { setFooter(
{children}
); }, [children]); return null; };