19 lines
914 B
TypeScript
19 lines
914 B
TypeScript
"use client";
|
|
import React from "react";
|
|
import { EmptyState as EmptyStateComponent, type EmptyStateRootProps } from "./EmptyState";
|
|
|
|
/**
|
|
* Add wrapper components and business logic here.
|
|
* If you modify this file, disable Subframe sync for it to prevent overwrites.
|
|
* Learn more: https://docs.subframe.com/concepts/syncing-components#wrapping-components
|
|
*
|
|
* History: this wrapper used to add `[&_button]:hidden` to suppress the synced
|
|
* component's hardcoded, non-wired english CTA ("Create project"). The synced
|
|
* component has since gained a proper `action` slot and no hardcoded button,
|
|
* so the class only hid the real action buttons screens pass in (create/retry
|
|
* CTAs). Do not re-add a blanket button-hiding class here.
|
|
*/
|
|
export const EmptyState = React.forwardRef<HTMLDivElement, EmptyStateRootProps>(function EmptyState(props, ref) {
|
|
return <EmptyStateComponent ref={ref} {...props} />;
|
|
});
|