Files
copilotkit__copilotkit/docs/components/ui/icons/star.tsx
2026-02-13 11:01:44 +01:00

24 lines
1.2 KiB
TypeScript

import { cn } from "@/lib/utils";
interface StarIconProps {
className?: string;
}
const DEFAULT_CLASSNAME = "text-icon";
const StarIcon = ({ className }: StarIconProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={20}
height={20}
fill="none"
className={cn(DEFAULT_CLASSNAME, className)}
>
<path
fill="currentColor"
d="M18.686 7.598a1.28 1.28 0 0 0-1.114-.88l-4.61-.371-1.78-4.304a1.277 1.277 0 0 0-2.364 0L7.04 6.346l-4.612.373a1.286 1.286 0 0 0-.732 2.254l3.516 3.034-1.071 4.536a1.28 1.28 0 0 0 1.914 1.392L10 15.507l3.948 2.428a1.28 1.28 0 0 0 1.911-1.392l-1.075-4.537L18.3 8.973a1.284 1.284 0 0 0 .386-1.375Zm-1.198.428-3.805 3.28a.625.625 0 0 0-.2.619l1.162 4.906a.029.029 0 0 1-.013.038c-.014.01-.018.008-.03 0l-4.275-2.63a.625.625 0 0 0-.654 0L5.398 16.87c-.012.007-.015.01-.03 0a.029.029 0 0 1-.013-.037l1.162-4.906a.625.625 0 0 0-.2-.618L2.513 8.027c-.01-.008-.018-.015-.01-.039.007-.024.013-.02.025-.022l4.994-.404a.625.625 0 0 0 .525-.386L9.97 2.52c.007-.013.009-.02.028-.02.018 0 .02.007.027.02l1.928 4.657a.626.626 0 0 0 .527.385l4.994.403c.012 0 .019 0 .026.023.007.022 0 .03-.012.039Z"
/>
</svg>
);
export default StarIcon;