File size: 927 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
// @flow
import React from 'react';
import type { ChannelInfoType } from 'shared/graphql/fragments/channel/channelInfo';
import { ChannelActions } from './components/channelActions';
import { ChannelMeta } from './components/channelMeta';
import { ChannelCommunityMeta } from './components/channelCommunityMeta';
import { ProfileContainer } from './style';
type Props = {
channel: ChannelInfoType,
hideActions?: boolean,
hideCommunityMeta?: boolean,
};
export const ChannelProfileCard = (props: Props) => {
const { channel, hideActions, hideCommunityMeta } = props;
return (
<ProfileContainer data-cy="channel-profile-card">
{!hideCommunityMeta && <ChannelCommunityMeta channel={channel} />}
<ChannelMeta channel={channel} />
{!hideActions ? (
<ChannelActions channel={channel} />
) : (
<div style={{ paddingBottom: '12px' }} />
)}
</ProfileContainer>
);
};
|