import { useContext } from 'react'; import * as React from 'react'; import { DialogContext } from './'; import { useDeepCompareEffect } from '@/plugins/useDeepCompareEffect'; export default ({ children }: { children: React.ReactNode }) => { const { setFooter } = useContext(DialogContext); useDeepCompareEffect(() => { setFooter(