added optional breadcrumbs; page layout refactoring; other chages

This commit is contained in:
tmshv committed 2020-02-23 02:31:05 +03:00
1 parent 1dbbe04d59
commit db485056e0
12 files changed
+140 -63

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import cx from 'classnames'
import { useReducedMotion } from 'src/hooks/useReducedMotion'
export type ContentProps = {
style?: React.CSSProperties
wide: boolean
}
export const Content: React.FC<ContentProps> = props => {
const motionDisabled = useReducedMotion()
return (
<div
className={cx('content', {
'reduced-motion': motionDisabled,
'content_wide': props.wide,
})}
style={props.style}
>
{props.children}
</div>
)
}