30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
// Metro module 13950 (f13951).
|
|
import { createStyles } from "../../../design/components/Styles/native/createStyles";
|
|
import Module712 from "../../../_bundle/Module712";
|
|
import useAnalyticsLocations from "../../app_analytics/useAnalyticsLocations";
|
|
import { PressableOpacity } from "../../../design/void/Pressables/native/Pressables";
|
|
import showUserProfileActionSheet from "../../user_profile/native/showUserProfileActionSheet";
|
|
const useStyles = createStyles({
|
|
container: {
|
|
display: "flex",
|
|
flexDirection: "row",
|
|
alignItems: "center",
|
|
paddingTop: 14,
|
|
paddingBottom: Module712.space.PX_12,
|
|
paddingHorizontal: Module712.space.PX_12
|
|
}
|
|
});
|
|
export default function FamilyCenterLinkRowWrapper(props) {
|
|
const { userId, children } = props;
|
|
const styles = useStyles();
|
|
const analyticsLocations = useAnalyticsLocations().analyticsLocations;
|
|
return userId !== void 0 ? <PressableOpacity style={styles.container} onPress={function onPress() {
|
|
showUserProfileActionSheet({
|
|
userId,
|
|
disableCalls: true,
|
|
disableMessage: true,
|
|
sourceAnalyticsLocations: analyticsLocations
|
|
});
|
|
}}>{children}</PressableOpacity> : null;
|
|
};
|