mirror of
https://github.com/ruisaraiva19/favycon.git
synced 2026-09-14 11:06:21 +05:00
* fix(deps): update react monorepo to v16.14.0 * refactor: use the new JSX transform Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Rui Saraiva <ruisaraiva19@gmail.com>
18 lines
311 B
TypeScript
18 lines
311 B
TypeScript
import PropTypes from 'prop-types'
|
|
|
|
import styles from './index.module.scss'
|
|
|
|
type StickyProps = {
|
|
children: PropTypes.ReactNodeLike
|
|
}
|
|
|
|
const Sticky = ({ children }: StickyProps) => {
|
|
return (
|
|
<div className={styles.root}>
|
|
<div className={styles.sticky}>{children}</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export { Sticky }
|