← vibesdk
src/routes/chat/components/preview-header-actions.tsx
1.0 KB
Download file
import type { RefObject } from 'react';
import { BaseHeaderActions } from '@/components/shared/BaseHeaderActions';
import type { ModelConfigsInfo } from '@/api-types';
interface PreviewHeaderActionsProps {
modelConfigs?: ModelConfigsInfo;
onRequestConfigs: () => void;
loadingConfigs: boolean;
onGitCloneClick: () => void;
isGitHubExportReady: boolean;
onGitHubExportClick: () => void;
previewRef: RefObject<HTMLIFrameElement | null>;
showGitActions?: boolean;
}
export function PreviewHeaderActions({
modelConfigs,
onRequestConfigs,
loadingConfigs,
onGitCloneClick,
isGitHubExportReady,
onGitHubExportClick,
previewRef,
showGitActions,
}: PreviewHeaderActionsProps) {
return (
<BaseHeaderActions
containerRef={previewRef}
modelConfigs={modelConfigs}
onRequestConfigs={onRequestConfigs}
loadingConfigs={loadingConfigs}
onGitCloneClick={onGitCloneClick}
isGitHubExportReady={isGitHubExportReady}
onGitHubExportClick={onGitHubExportClick}
showGitActions={showGitActions}
/>
);
}