import { useBlockProps } from '@wordpress/block-editor'; import { ExternalLink } from '@wordpress/components'; /** * The save function defines the way in which the different attributes should * be combined into the final markup, which is then serialized by the block * editor into `post_content`. * * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save * * @return {WPElement} Element to render. */ export default function save( { attributes } ) { const blockProps = useBlockProps.save(); return (
Place | Player | Points |
---|---|---|
{attributes.data.standings[i].position} | {attributes.data.players.find(p => p.playerId === attributes.data.standings[i].playerId).name} | {attributes.data.standings[i].points} |