│ - 전체 파일 대상 포맷팅 및 린트 오류 수정 │ │ - 타입을 으로 변경하여 타입 안정성 강화 │ │ - 불필요한 import 제거 및 useEffect 의존성 배열 수정 │ │ - 파일을 /로 마이그레이션하여 타입스크립트 일관성 확보 │ │ - 에 개발 원칙 추가
27 lines
660 B
TypeScript
27 lines
660 B
TypeScript
import type * as React from "react";
|
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
|
|
import { cn } from "@/lib/utils";
|
|
|
|
function Separator({
|
|
className,
|
|
orientation = "horizontal",
|
|
decorative = true,
|
|
...props
|
|
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
|
|
return (
|
|
<SeparatorPrimitive.Root
|
|
data-slot="separator"
|
|
decorative={decorative}
|
|
orientation={orientation}
|
|
className={cn(
|
|
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export { Separator };
|