| 44 | ); |
| 45 | |
| 46 | function EmptyMedia({ |
| 47 | className, |
| 48 | variant = "default", |
| 49 | ...props |
| 50 | }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>) { |
| 51 | return ( |
| 52 | <div |
| 53 | className={cn("relative mb-6", className)} |
| 54 | data-slot="empty-media" |
| 55 | data-variant={variant} |
| 56 | {...props} |
| 57 | > |
| 58 | {variant === "icon" && ( |
| 59 | <> |
| 60 | <div |
| 61 | aria-hidden="true" |
| 62 | className={cn( |
| 63 | emptyMediaVariants({ className, variant }), |
| 64 | "-translate-x-0.5 -rotate-10 pointer-events-none absolute bottom-px origin-bottom-left scale-84 shadow-none", |
| 65 | )} |
| 66 | /> |
| 67 | <div |
| 68 | aria-hidden="true" |
| 69 | className={cn( |
| 70 | emptyMediaVariants({ className, variant }), |
| 71 | "pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 rotate-10 scale-84 shadow-none", |
| 72 | )} |
| 73 | /> |
| 74 | </> |
| 75 | )} |
| 76 | <div |
| 77 | className={cn(emptyMediaVariants({ className, variant }))} |
| 78 | {...props} |
| 79 | /> |
| 80 | </div> |
| 81 | ); |
| 82 | } |
| 83 | |
| 84 | function EmptyTitle({ className, ...props }: React.ComponentProps<"div">) { |
| 85 | return ( |