Emdash source with visual editor image upload fix
Fixes: 1. media.ts: wrap placeholder generation in try-catch 2. toolbar.ts: check r.ok, display error message in popover
This commit is contained in:
23
packages/admin/src/components/ArrowIcons.tsx
Normal file
23
packages/admin/src/components/ArrowIcons.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ArrowRightIcon, CaretRightIcon, type IconProps } from "@phosphor-icons/react";
|
||||
|
||||
import { cn } from "../lib/utils";
|
||||
|
||||
/** Caret pointing in the "forward" direction — right in LTR, left in RTL. */
|
||||
export function CaretNext({ className, ...props }: IconProps) {
|
||||
return <CaretRightIcon className={cn("rtl:-scale-x-100", className)} {...props} />;
|
||||
}
|
||||
|
||||
/** Caret pointing in the "backward" direction — left in LTR, right in RTL. */
|
||||
export function CaretPrev({ className, ...props }: IconProps) {
|
||||
return <CaretRightIcon className={cn("rotate-180 rtl:rotate-0", className)} {...props} />;
|
||||
}
|
||||
|
||||
/** Arrow pointing in the "forward" direction — right in LTR, left in RTL. */
|
||||
export function ArrowNext({ className, ...props }: IconProps) {
|
||||
return <ArrowRightIcon className={cn("rtl:-scale-x-100", className)} {...props} />;
|
||||
}
|
||||
|
||||
/** Arrow pointing in the "backward" direction — left in LTR, right in RTL. */
|
||||
export function ArrowPrev({ className, ...props }: IconProps) {
|
||||
return <ArrowRightIcon className={cn("rotate-180 rtl:rotate-0", className)} {...props} />;
|
||||
}
|
||||
Reference in New Issue
Block a user