// @flow import React from 'react'; import classnames from 'classnames'; import Page from 'component/page'; import ClaimListDiscover from 'component/claimListDiscover'; import ClaimEffectiveAmount from 'component/claimEffectiveAmount'; import SearchTopClaim from 'component/searchTopClaim'; import * as CS from 'constants/claim_search'; import Button from 'component/button'; import I18nMessage from 'component/i18nMessage'; import * as PAGES from 'constants/pages'; type Props = { name: string, beginPublish: (string) => void, }; function TopPage(props: Props) { const { name, beginPublish } = props; const [channelActive, setChannelActive] = React.useState(false); // if the query was actually '@name', still offer repost for 'name' const queryName = name[0] === '@' ? name.slice(1) : name; return ( ), publish: (