mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-31 00:18:55 +01:00
27 lines
666 B
TypeScript
27 lines
666 B
TypeScript
import { forwardRef } from "react";
|
|
import { cn } from "@/lib/utils";
|
|
import { FaImage } from "react-icons/fa";
|
|
import { LuText } from "react-icons/lu";
|
|
|
|
type SearchSourceIconProps = {
|
|
className?: string;
|
|
onClick?: () => void;
|
|
};
|
|
|
|
const SearchSourceIcon = forwardRef<HTMLDivElement, SearchSourceIconProps>(
|
|
({ className, onClick }, ref) => {
|
|
return (
|
|
<div
|
|
ref={ref}
|
|
className={cn("relative flex items-center", className)}
|
|
onClick={onClick}
|
|
>
|
|
<LuText className="absolute size-3 translate-x-3 translate-y-3/4" />
|
|
<FaImage className="size-5" />
|
|
</div>
|
|
);
|
|
},
|
|
);
|
|
|
|
export default SearchSourceIcon;
|