* fix: split display path and query base path #709 * test(frontend): shared render utils * fix(file-tree): add missing path segments * chore: bump Bun version * fix: select kind for synthetic folders
24 lines
584 B
TypeScript
24 lines
584 B
TypeScript
import { RestoreForm } from "~/client/components/restore-form";
|
|
import type { Repository } from "~/client/lib/types";
|
|
|
|
type Props = {
|
|
repository: Repository;
|
|
snapshotId: string;
|
|
returnPath: string;
|
|
queryBasePath?: string;
|
|
displayBasePath?: string;
|
|
};
|
|
|
|
export function RestoreSnapshotPage(props: Props) {
|
|
const { returnPath, snapshotId, repository, queryBasePath, displayBasePath } = props;
|
|
|
|
return (
|
|
<RestoreForm
|
|
repository={repository}
|
|
snapshotId={snapshotId}
|
|
returnPath={returnPath}
|
|
queryBasePath={queryBasePath}
|
|
displayBasePath={displayBasePath}
|
|
/>
|
|
);
|
|
}
|