21 lines
1.1 KiB
TypeScript
21 lines
1.1 KiB
TypeScript
"use client";
|
|
import React from "react";
|
|
import { EmptyState as EmptyStateComponent, type EmptyStateRootProps } from "./EmptyState";
|
|
import * as SubframeUtils from "../../utils";
|
|
|
|
/**
|
|
* 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
|
|
*
|
|
* Wrapper rationale (2026-07-07, R-P5 verification): the synced Subframe
|
|
* component always renders a hardcoded, non-wired english CTA ("Create
|
|
* project" / "Try again" / "Clear filters") - no onClick, no i18n (violates
|
|
* DoD B10/E23). Until the design-system component gets a proper action slot
|
|
* (design-nachzug), the wrapper hides that dead internal button; screens render
|
|
* their own translated action next to the EmptyState.
|
|
*/
|
|
export const EmptyState = React.forwardRef<HTMLDivElement, EmptyStateRootProps>(function EmptyState({ className, ...props }, ref) {
|
|
return <EmptyStateComponent ref={ref} className={SubframeUtils.twClassNames("[&_button]:hidden", className)} {...props} />;
|
|
});
|