feat(ui): new WorkflowDetail using antd
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import React from "react";
|
||||
|
||||
const Show = ({ when, children, fallback }: { when: boolean; children: React.ReactNode; fallback?: React.ReactNode }) => {
|
||||
export type ShowProps = {
|
||||
when: boolean;
|
||||
children: React.ReactNode;
|
||||
fallback?: React.ReactNode;
|
||||
};
|
||||
|
||||
const Show = ({ when, children, fallback }: ShowProps) => {
|
||||
return when ? children : fallback;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user