import * as React from "react"; // Import interfaces import { ChannelWithPosiiton } from "../helpers/types"; // Import styles import { ChannelStyled } from "../styles"; interface ChannelProps { channel: T; onClick?: (v: ChannelWithPosiiton) => void; } const { ChannelBox, ChannelLogo } = ChannelStyled; export function Channel({ channel, onClick, ...rest }: ChannelProps) { const { position, logo } = channel; return ( onClick?.(channel)} {...position} {...rest} > ); }