export const Example: React.FC = (() => {
const platform = usePlatform();
const [activeStory, setActiveStory] = React.useState('profile');
const onStoryChange = (e) => setActiveStory(e.currentTarget.dataset.story);
const isDesktop = viewWidth >= ViewWidth.TABLET;
const hasHeader = platform !== VKCOM;
return (
}
style={{ justifyContent: "center" }}
>
{isDesktop && (
{hasHeader && }
| }
>
feed
| }
>
services
| }
>
messages
| }
>
clips
| }
>
profile
)}
}>
}>Новости
} />
}>Сервисы
}>
}>Сообщения
}>
}>Клипы
}>
}>Профиль
}>
);
}, {
viewWidth: true
});