Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
24 lines
521 B
TypeScript
24 lines
521 B
TypeScript
'use client'
|
|
|
|
import type { ComponentProps } from 'react'
|
|
|
|
import { Slider as HeroSlider } from '@heroui/react'
|
|
|
|
type SliderProps = Omit<ComponentProps<typeof HeroSlider>, 'children' | 'size'> & {
|
|
size?: 'sm' | 'md' | 'lg'
|
|
}
|
|
|
|
export function Slider({ size, ...props }: SliderProps) {
|
|
return (
|
|
<HeroSlider
|
|
{...props}
|
|
className={size === 'sm' ? 'py-1' : undefined}
|
|
>
|
|
<HeroSlider.Track>
|
|
<HeroSlider.Fill />
|
|
<HeroSlider.Thumb />
|
|
</HeroSlider.Track>
|
|
</HeroSlider>
|
|
)
|
|
}
|