Files
ColdBreeze-chat-web/src/common/component/ChannelIcon.tsx
T
2023-01-30 18:56:37 +08:00

20 lines
525 B
TypeScript

import { FC } from "react";
import HashIcon from "../../assets/icons/channel.svg";
import LockHashIcon from "../../assets/icons/channel.private.svg";
interface Props {
personal?: boolean;
muted?: boolean;
className?: string;
}
const ChannelIcon: FC<Props> = ({ personal = false, muted = false, className = "" }) => {
return (
<div className={`flex${muted ? "!text-gray-400 !fill-slate-400" : ""} ${className}`}>
{personal ? <LockHashIcon /> : <HashIcon />}
</div>
);
};
export default ChannelIcon;