All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m24s
25 lines
564 B
TypeScript
25 lines
564 B
TypeScript
import { cn } from '@/lib/utils';
|
|
import * as SeparatorPrimitive from '@rn-primitives/separator';
|
|
|
|
function Separator({
|
|
className,
|
|
orientation = 'horizontal',
|
|
decorative = true,
|
|
...props
|
|
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
|
|
return (
|
|
<SeparatorPrimitive.Root
|
|
decorative={decorative}
|
|
orientation={orientation}
|
|
className={cn(
|
|
'bg-border shrink-0',
|
|
orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',
|
|
className
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { Separator };
|