import type { ChatPageContext } from '../../context'
import { renderCopyToastOverlay as renderSharedCopyToastOverlay } from '../../../utils/copy-toast-overlay'

export function renderCopyToastOverlay(ctx: ChatPageContext) {
  return renderSharedCopyToastOverlay({
    visible: ctx.copyToastVisible,
    text: ctx.copyToastText,
    cols: ctx.cols,
    ui: ctx.ui,
  })
}
