mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-16 20:59:27 +00:00
16 lines
420 B
TypeScript
16 lines
420 B
TypeScript
import { ComponentPropsWithoutRef, forwardRef } from 'react'
|
|
|
|
import { clsx } from 'clsx'
|
|
|
|
import s from './page.module.scss'
|
|
|
|
export type PageProps = ComponentPropsWithoutRef<'div'>
|
|
|
|
export const Page = forwardRef<HTMLDivElement, PageProps>(({ className, ...props }, ref) => {
|
|
const classNames = {
|
|
root: clsx(s.root, className),
|
|
}
|
|
|
|
return <div {...props} className={classNames.root} ref={ref} />
|
|
})
|