// Copyright (C) 2017-2023 Smart code 203358507 const React = require('react'); const PropTypes = require('prop-types'); const classnames = require('classnames'); const { useTranslation } = require('react-i18next'); const { default: Icon } = require('@stremio/stremio-icons/react'); const { Button } = require('stremio/components'); const CONSTANTS = require('stremio/common/CONSTANTS'); const styles = require('./styles'); const MetaRowPlaceholder = ({ className, title, deepLinks }) => { const { t } = useTranslation(); return (
0 ? title : null}> {typeof title === 'string' && title.length > 0 ? title : null}
{ deepLinks && typeof deepLinks.discover === 'string' ? : null }
{Array(CONSTANTS.CATALOG_PREVIEW_SIZE).fill(null).map((_, index) => (
))}
); }; MetaRowPlaceholder.propTypes = { className: PropTypes.string, title: PropTypes.string, deepLinks: PropTypes.shape({ discover: PropTypes.string }) }; module.exports = MetaRowPlaceholder;