Use new AnyProfileView

This commit is contained in:
Eric Bailey
2025-02-05 11:17:35 -06:00
parent 704d3c7497
commit 98e7d7401b
+1 -1
View File
@@ -69,7 +69,7 @@ export function useProfileShadow<
* This is useful for when the profile is not guaranteed to be loaded yet.
*/
export function useMaybeProfileShadow<
TProfileView extends AppBskyActorDefs.ProfileView,
TProfileView extends atp.profile.AnyProfileView,
>(profile?: TProfileView): Shadow<TProfileView> | undefined {
const [shadow, setShadow] = useState(() =>
profile ? shadows.get(profile) : undefined,