lbry-desktop/ui/component/common/unsupported-on-web.jsx

23 lines
620 B
React
Raw Normal View History

2019-07-29 18:54:46 +02:00
// @flow
2019-03-18 06:06:41 +01:00
import React from 'react';
import Button from 'component/button';
2019-07-29 18:54:46 +02:00
type Props = {
type?: string,
};
export default function UnsupportedOnWeb(props: Props) {
const { type = 'page' } = props;
2019-03-18 06:06:41 +01:00
return (
IS_WEB && (
2019-11-22 22:13:00 +01:00
<div className="section__subtitle--status">
2019-07-29 18:54:46 +02:00
{type === 'page' && __('This page is not currently supported on the web')}
{type === 'feature' && __('This feature is not currently supported on the web')}.{' '}
<Button button="link" label={__('Download the desktop app')} href="https://lbry.com/get" /> for full feature
support.
</div>
)
2019-03-18 06:06:41 +01:00
);
}