mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
28 lines
646 B
TypeScript
28 lines
646 B
TypeScript
import * as React from "react";
|
|
import { StatelessComponent } from "react";
|
|
|
|
import { graphql, withLocalStateContainer } from "talk-framework/lib/relay";
|
|
import { AppContainerLocal as Local } from "talk-stream/__generated__/AppContainerLocal.graphql";
|
|
|
|
import App from "../components/App";
|
|
|
|
interface InnerProps {
|
|
local: Local;
|
|
}
|
|
|
|
const AppContainer: StatelessComponent<InnerProps> = ({
|
|
local: { commentID },
|
|
}) => {
|
|
return <App showPermalinkView={!!commentID} />;
|
|
};
|
|
|
|
const enhanced = withLocalStateContainer<Local>(
|
|
graphql`
|
|
fragment AppContainerLocal on Local {
|
|
commentID
|
|
}
|
|
`
|
|
)(AppContainer);
|
|
|
|
export default enhanced;
|