summaryrefslogtreecommitdiff
path: root/legacy/components/properties/keyframe-toggle.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/components/properties/keyframe-toggle.tsx')
-rw-r--r--legacy/components/properties/keyframe-toggle.tsx64
1 files changed, 32 insertions, 32 deletions
diff --git a/legacy/components/properties/keyframe-toggle.tsx b/legacy/components/properties/keyframe-toggle.tsx
index b5b8685f..00cea82b 100644
--- a/legacy/components/properties/keyframe-toggle.tsx
+++ b/legacy/components/properties/keyframe-toggle.tsx
@@ -1,32 +1,32 @@
-import { Button } from "@/components/ui/button";
-import { HugeiconsIcon } from "@hugeicons/react";
-import { KeyframeIcon } from "@hugeicons/core-free-icons";
-import { cn } from "@/utils/ui";
-
-export function KeyframeToggle({
- isActive,
- isDisabled = false,
- title,
- onToggle,
-}: {
- isActive: boolean;
- isDisabled?: boolean;
- title: string;
- onToggle: () => void;
-}) {
- return (
- <Button
- variant="text"
- aria-pressed={isActive}
- disabled={isDisabled}
- title={title}
- onClick={onToggle}
- className="[&>svg]:size-3.5 mb-0.5"
- >
- <HugeiconsIcon
- icon={KeyframeIcon}
- className={cn(isActive && "text-primary fill-primary")}
- />
- </Button>
- );
-}
+import { Button } from "@/components/ui/button";
+import { HugeiconsIcon } from "@hugeicons/react";
+import { KeyframeIcon } from "@hugeicons/core-free-icons";
+import { cn } from "@/utils/ui";
+
+export function KeyframeToggle({
+ isActive,
+ isDisabled = false,
+ title,
+ onToggle,
+}: {
+ isActive: boolean;
+ isDisabled?: boolean;
+ title: string;
+ onToggle: () => void;
+}) {
+ return (
+ <Button
+ variant="text"
+ aria-pressed={isActive}
+ disabled={isDisabled}
+ title={title}
+ onClick={onToggle}
+ className="[&>svg]:size-3.5 mb-0.5"
+ >
+ <HugeiconsIcon
+ icon={KeyframeIcon}
+ className={cn(isActive && "text-primary fill-primary")}
+ />
+ </Button>
+ );
+}