= ({ include, legend }) => {
const { features } = usePluginData(PLUGIN_NAME) as { features: Feature[] };
const { pluginId, version } = useDocsVersion();
@@ -29,7 +32,7 @@ const TechPreviewTable: React.FC = () => {
return null;
}
- const rows = buildRows(features, pluginId, versions);
+ const rows = buildRows(features, pluginId, versions, include);
if (!rows.length) return null;
return (
@@ -54,9 +57,18 @@ const TechPreviewTable: React.FC = () => {
))}
- {buildLegend(PREVIEW_LEGEND)}
+ {buildLegend(legend)}
>
);
};
-export default TechPreviewTable;
+/** Features that were in technology preview at some point in the window. */
+export const TechPreviewTable: React.FC = () => ;
+
+/**
+ * Features that were deprecated or removed at some point in the window.
+ *
+ * Both statuses select a row, so a feature that was deprecated earlier and removed
+ * inside the window stays visible through the release that removed it.
+ */
+export const DeprecatedFeaturesTable: React.FC = () => ;