+ #{entry.id.substring(0, 7)}
+
+ + {entry.title} +
++ {formatDistanceToNow(new Date(entry.date), { + addSuffix: true, + locale: ptBR, + })} +
+a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", + className + )} + {...props} + /> + ) +} + +function ItemActions({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function ItemHeader({ className, ...props }: React.ComponentProps<"div">) { + return ( + + ) +} + +function ItemFooter({ className, ...props }: React.ComponentProps<"div">) { + return ( + + ) +} + +export { + Item, + ItemMedia, + ItemContent, + ItemActions, + ItemGroup, + ItemSeparator, + ItemTitle, + ItemDescription, + ItemHeader, + ItemFooter, +} diff --git a/components/ui/scroll-area.tsx b/components/ui/scroll-area.tsx new file mode 100644 index 0000000..8e4fa13 --- /dev/null +++ b/components/ui/scroll-area.tsx @@ -0,0 +1,58 @@ +"use client" + +import * as React from "react" +import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area" + +import { cn } from "@/lib/utils" + +function ScrollArea({ + className, + children, + ...props +}: React.ComponentProps