So I have this Astro file:
<MyComponent socials={socials} client:only="react">
<div class="relative" slot="one-to-react">
"asdasdzzz"
</div>
<p slot="two-to-react">
"zxczxczxc"
</p>
</MyComponent>
And this is my react component:
export default function MyComponent(props: any) {
return <div>
{props.twoToReact}
{props.oneToReact}
</div>
}
But using any is not useful and I don't know how can I type the props, that are generated by Astro:
two slots, and the client attribute
and also the socials thing is the data returned by getCollection() so again, I don't know how to specify the type for these things
Can someone please help and explain if there is any way to be type-safe in this use case?