async function add_block_to_site({ symbol, index }) {
	let created_symbol_db_id

	await update_timeline({
		doing: async () => {
			const new_block = await create_block({
				name: symbol.name,
				code: symbol.code,
				entries: symbol.entries.filter(e => !e.page && !e.site),
				fields: symbol.fields,
				index
			})
			created_symbol_db_id = new_block.id

			await insert_block(new_block)
		},
		undoing: async () => {
			await delete_block(created_symbol_db_id)
		}
	})
}
Adds a block to the site.

@param {Object} options
@param {Object} options.symbol - The symbol object representing the block to be added.
@param {number} options.index - The index at which to insert the block.
@returns {Promise<void>}