mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-27 16:26:16 +08:00
22 lines
424 B
TypeScript
22 lines
424 B
TypeScript
import React from "react";
|
|
|
|
interface ListItemRowProps {
|
|
isLast?: boolean;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const ListItemRow: React.FC<ListItemRowProps> = ({
|
|
isLast,
|
|
children,
|
|
}) => {
|
|
return (
|
|
<div
|
|
className={`group flex items-center gap-3 px-4 py-2.5 hover:bg-muted/50 transition-colors ${
|
|
!isLast ? "border-b border-border-default" : ""
|
|
}`}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|