Is it possible to create a type of a subset of the routes for LinkOptions?
Lets say we have these routes
inside inbox im rendering an email card component, this card has multiple links inside.
whether im rendering this component inside /inbox i want the links to go to
/inbox/$emailId
and when im in /clients/$clientUuid/inbox
i want the link to go to /clients/$clientUuid/inbox/$emailId
so i want to pass in props like LinkOptions but only for these routes, and when im in the client inbox it should highlight that i should add the clientUuid prop2 Replies
old-apricot•2w ago
so to should depend on from?
foreign-sapphireOP•2w ago
Not really
Basically i want to type props for a component like