-
Basic Information
-
{
- if (!title || !date) return ''
-
- const formattedTitle = title
- .toLowerCase()
- .replace(/[^a-z0-9\s-]/g, '')
- .replace(/\s+/g, '-')
- .replace(/-+/g, '-')
- .trim()
-
- const dateObj = new Date(date)
- const month = String(dateObj.getMonth() + 1).padStart(2, '0')
- const day = String(dateObj.getDate()).padStart(2, '0')
- const year = dateObj.getFullYear()
-
- return `sermon-${month}${day}${year}`
-}
-
const addBibleReference = () => {
form.bibleReferences.push('')
}