mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
12 lines
393 B
TypeScript
12 lines
393 B
TypeScript
import { ItemDetailListCellProps } from './types';
|
|
|
|
interface DefaultColumnProps extends ItemDetailListCellProps {
|
|
columnId: string;
|
|
}
|
|
|
|
export const DefaultColumn = ({ columnId, song }: DefaultColumnProps) => {
|
|
const raw = (song as Record<string, unknown>)[columnId];
|
|
if (raw === undefined || raw === null || typeof raw === 'object') return <> </>;
|
|
return String(raw);
|
|
};
|