    stock(this.props.screenshotOptions);
  }

  componentDidMount() {
    capture();
  }

  render() {
    return <>{this.props.children}</>;
  }
}

export function withScreenshot(opt: Partial<ScreenShotOptions> = {}) {
  return (storyFn: Function, ctx: StoryKind | undefined) => {
    const wrapperWithContext = (context: any) => {