@@ -15,11 +15,12 @@ import { getAgentFromClient } from "@/lib/api/bsky/agent";
15
15
16
16
interface Props {
17
17
feedItem : GeneratorView ;
18
- saved : boolean ;
18
+ saved ?: boolean ;
19
+ rounded ?: boolean ;
19
20
}
20
21
21
22
export default function FeedItem ( props : Props ) {
22
- const { feedItem, saved } = props ;
23
+ const { feedItem, saved, rounded = true } = props ;
23
24
const { avatar, displayName, description, likeCount, creator } = feedItem ;
24
25
const [ isSaved , setIsSaved ] = useState ( saved ) ;
25
26
const router = useRouter ( ) ;
@@ -45,11 +46,13 @@ export default function FeedItem(props: Props) {
45
46
< Link
46
47
href = { {
47
48
pathname : `/dashboard/feeds/${ encodeURIComponent (
48
- feedItem . uri . split ( ":" ) [ 3 ] . split ( "/" ) [ 0 ] ,
49
+ feedItem . uri . split ( ":" ) [ 3 ] . split ( "/" ) [ 0 ]
49
50
) } `,
50
51
query : { uri : feedItem . uri } ,
51
52
} }
52
- className = "border-skin-base hover:bg-skin-secondary flex flex-col gap-2 border border-x-0 p-3 last:border-b md:border-x md:first:rounded-t-2xl md:last:rounded-b-2xl odd:[&:not(:last-child)]:border-b-0 even:[&:not(:last-child)]:border-b-0"
53
+ className = { `border-skin-base hover:bg-skin-secondary flex flex-col gap-2 border border-x-0 p-3 last:border-b md:border-x ${
54
+ rounded && "md:first:rounded-t-2xl"
55
+ } md:last:rounded-b-2xl odd:[&:not(:last-child)]:border-b-0 even:[&:not(:last-child)]:border-b-0`}
53
56
>
54
57
< div className = "flex flex-wrap items-center justify-between gap-3" >
55
58
< div className = "flex flex-wrap items-center gap-3" >
@@ -58,7 +61,9 @@ export default function FeedItem(props: Props) {
58
61
alt = { displayName }
59
62
width = { 40 }
60
63
height = { 40 }
61
- className = { `rounded-lg ${ ! avatar && "border-skin-base bg-skin-muted border" } ` }
64
+ className = { `rounded-lg ${
65
+ ! avatar && "border-skin-base bg-skin-muted border"
66
+ } `}
62
67
/>
63
68
< div className = "flex flex-col" >
64
69
< h2 className = "text-skin-base break-words font-semibold" >
0 commit comments