diff --git a/src/apps/detailPages/MediaContents.tsx b/src/apps/detailPages/MediaContents.tsx index 10b5fe5a..84c7afed 100644 --- a/src/apps/detailPages/MediaContents.tsx +++ b/src/apps/detailPages/MediaContents.tsx @@ -1,15 +1,19 @@ import { useTranslations } from '@i18n/useTranslations'; +import { Button } from '@performant-software/core-data'; import Viewer from '@samvera/clover-iiif/viewer'; -import { useMemo } from 'react'; +import { useMemo, useState } from 'react'; +import _ from 'underscore'; interface Props { model: string; uuid: string; data: any; + showContentWarning?: boolean; } const MediaContents = (props: Props) => { const { t } = useTranslations(); + const [showContentWarning, setShowContentWarning] = useState(props.showContentWarning); const count = useMemo( () => props.data.items.reduce((acc, item) => acc + item.item_count, 0), @@ -22,14 +26,28 @@ const MediaContents = (props: Props) => { return (
{t('contentWarningRelatedMedia')}
+ +