mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
17 lines
451 B
TypeScript
17 lines
451 B
TypeScript
import clsx from "clsx";
|
|
import React from "react";
|
|
|
|
type Props = React.ComponentProps<"table"> & {};
|
|
|
|
export const FULL_WIDTH_TABLE_VARIABLE_NAME = "preferred-full-table-width";
|
|
|
|
export const Table = (props: Props) => (
|
|
<div className={clsx("table-container")}>
|
|
<table {...props} />
|
|
</div>
|
|
);
|
|
|
|
export const FullTable = ({ children }: React.PropsWithChildren<{}>) => {
|
|
return <div className="table-full-width">{children}</div>;
|
|
};
|