feat: widget sdk
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// import React from "react";
|
||||
import { useAppSelector } from "../app/store";
|
||||
|
||||
type Props = {
|
||||
handleClick: () => void
|
||||
};
|
||||
|
||||
const Icon = ({ handleClick }: Props) => {
|
||||
const { logo } = useAppSelector(store => store.server);
|
||||
if (!logo) return null;
|
||||
return <button className="rounded-full w-12 h-12" onClick={handleClick}>
|
||||
<img src={logo} alt="logo" className="w-full h-full" />
|
||||
</button>;
|
||||
};
|
||||
|
||||
export default Icon;
|
||||
Reference in New Issue
Block a user