import React from 'react'; import type { Theme } from '../../types/theme'; import './CreationActions.css'; interface CreationActionsProps { selectedTheme: Theme | null; error: string | null; creating: boolean; presentationTitle: string; onCancel: () => void; onCreate: () => void; } export const CreationActions: React.FC = ({ selectedTheme, error, creating, presentationTitle, onCancel, onCreate }) => { return (
{selectedTheme && (

Selected Theme: {selectedTheme.name}

{selectedTheme.description}

{selectedTheme.layouts.length} layouts available {selectedTheme.author && by {selectedTheme.author}}
)} {error && (

Failed to create presentation: {error}

)}
); };