ChannelListItem.tsx 568 B

1234567891011121314151617181920212223242526
  1. import { Space } from "antd";
  2. import { Avatar } from "antd";
  3. import type { IChannelApiData } from "../api/Channel";
  4. import { IStudio } from "../auth/StudioName";
  5. interface IWidget {
  6. channel: IChannelApiData;
  7. studio: IStudio;
  8. showProgress?: boolean;
  9. showLike?: boolean;
  10. }
  11. const Widget = ({ channel, studio, showProgress, showLike }: IWidget) => {
  12. const studioName = studio.nickName.slice(0, 2);
  13. return (
  14. <>
  15. <Space>
  16. <Avatar size="small">{studioName}</Avatar>
  17. {channel.name}
  18. </Space>
  19. </>
  20. );
  21. };
  22. export default Widget;