Hello, really basic question I guess but I can't seem to access a prop computed in a layout:
const { content, frontmatter, ...props} = Astro.props;
props.version = currentVersion || latestVersion;
When I console.log or place <Debug {props.version}/> in the layout, I get the correct version number, but if I try to access {props.version} or {version} in the MDX it's either empty or not defined.
What's the proper way of doing this? Can it be done via a layout and not a component?
Thanks.