added optional breadcrumbs; page layout refactoring; other chages
This commit is contained in:
1 parent
1dbbe04d59
commit
db485056e0
12 files changed
+140
-63
No files matched your search
@@ -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>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user