"use client";
import { jsxs, jsx } from 'react/jsx-runtime';
import { LastUpdatedDate, EditOnGitHub } from './toc-base.mjs';

function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, copyButtonComponent }) {
    const showEdit = githubBaseUrl && editPath;
    return (jsxs("div", { className: "flex flex-col gap-y-2 items-start m-4", children: [jsx(LastUpdatedDate, { date: lastModified }), copyButtonComponent, showEdit && jsx(EditOnGitHub, { url: `${githubBaseUrl}${editPath}` })] }));
}

export { TocFooterWrapper };
