DeleteStoryButton
A button component with confirmation dialog for deleting a story.Props
The unique identifier of the story to delete
Usage Example
Features
- Destructive styling with trash icon
- Alert dialog confirmation before deletion
- Loading state during deletion
- Responsive text (hidden on mobile, visible on desktop)
- Automatic session validation
- Disabled state when operation is pending
This component includes a confirmation dialog to prevent accidental deletions. The action is irreversible and will permanently delete the story and all its contents.
Dialog Content
The confirmation dialog includes:- Warning title: “Are you sure?”
- Description explaining the permanent nature of deletion
- Cancel button to abort the operation
- Delete button with loading indicator
Security
The component verifies user authentication before allowing deletion:Story Creation and Management
While the current codebase shows a delete button for stories, the story feature includes:Expected Story Features
Story Creation
Components for creating new Bible-based stories and devotionals
Story Viewing
Display components for reading and viewing story content
Story Editing
Rich text editing capabilities for story content
Story Sharing
Options to share stories with other users or make them public
Future Components
The stories feature is designed to be extensible. Future components may include:StoryCard- Display component for story previewsCreateStoryForm- Form for creating new storiesEditStoryForm- Form for editing existing storiesStoryList- List view of user’s storiesStoryViewer- Full-page story reading view
The stories feature allows users to create devotionals, reflections, and teachings based on Bible passages. Stories can incorporate multiple verses and include rich text formatting.